Function at 0x4fbe80
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa4]
mov eax, dword [esi]
xor ebp, ebp
push edi
cmp dword [eax + 8], ebp
jne 0x4fbee0
push 0x14
call fcn.00573487
add esp, 4
cmp eax, ebp
je 0x4fbebb
mov dword [eax], ebp
mov dword [eax + 4], ebp
or ecx, 0xffffffff
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebp
jmp 0x4fbebd
xor eax, eax
mov ecx, dword [esp + 0xa4]
mov dword [ecx], eax
cmp eax, ebp
je 0x4fbed3
mov edx, 1
lock xadd dword [eax], edx
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov ecx, dword [esp + 0xac]
cmp ecx, 7
ja case.default.0x4fbef0
jmp dword [ecx*4 + 0x4fc7a8]
mov dword [esp + 0x1c], eax
mov ecx, 1
lock xadd dword [eax], ecx
push 1
push 0xa
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x28]
xor ebx, ebx
call fcn.004b93c0
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004fb720
mov ecx, dword [esp + 0x70]
add esp, 0xc
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4fbf40
mov eax, dword [esp + 0x64]
push eax
call fcn.004b7ca0
add esp, 4
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 8], 0xa
jne 0x4fbf73
mov esi, dword [esp + 0xa4]
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
call fcn.004f56a0
lea ecx, [esp + 0x1c]
call fcn.004010b0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
push 0xffffffffffffffff
push 0xb
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x28]
call fcn.004b9440
push eax
lea ecx, [esp + 0x20]
call fcn.004b7cb0
lea ecx, [esp + 0x80]
call fcn.004010b0
mov ecx, 0x5a
push 1
lea edx, [esp + 0x56]
mov word [esp + 0x56], cx
push edx
lea ecx, [esp + 0x24]
call fcn.004b7e60
test al, al
je 0x4fbfcb
mov ebx, 1
push ebx
lea ecx, [esp + 0x20]
call fcn.004bbac0
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x8c], 0x632f50
call fcn.004b8a80
push ebp
push 1
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x40]
call fcn.004ec310
lea ecx, [esp + 0x68]
call fcn.004010b0
push ebp
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
call fcn.004b7d90
cmp eax, 0xffffffff
setne al
movzx eax, al
neg eax
sbb eax, eax
lea ecx, [esp + 0x41]
test ecx, eax
je 0x4fc207
push ebp
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
call fcn.004b7d90
mov esi, eax
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
call fcn.004b9440
push esi
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x24]
call fcn.004b93c0
push eax
lea ecx, [esp + 0x20]
call fcn.004b7cb0
lea ecx, [esp + 0x78]
call fcn.004010b0
push 1
push ebp
push ecx
mov eax, esp
mov edx, 0x3a
mov byte [esp + 0x33], 1
lea ecx, [esp + 0x38]
mov edi, 3
mov word [eax], dx
call fcn.004b9340
cmp eax, edi
jne 0x4fc097
mov edi, 4
push 0xa
lea eax, [esp + 0x2b]
push eax
push 2
push 1
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x40]
call fcn.004b9440
mov ecx, eax
call fcn.004b8170
lea ecx, [esp + 0x84]
mov esi, eax
call fcn.004010b0
push 0xa
lea edx, [esp + 0x2b]
push edx
push 2
push edi
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x40]
call fcn.004b9440
mov ecx, eax
call fcn.004b8170
lea ecx, [esp + 0x6c]
mov edi, eax
call fcn.004010b0
cmp esi, 0x18
jae 0x4fc0fc
cmp edi, 0x3c
jb 0x4fc108
mov dword [esp + 0x30], 0xffffffff
xor esi, esi
jmp 0x4fc127
mov ecx, esi
shl ecx, 4
sub ecx, esi
lea eax, [edi + ecx*4]
imul eax, eax, 0xea60
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
jne 0x4fc125
xor esi, esi
jmp 0x4fc127
mov esi, eax
lea ecx, [esp + 0x30]
call fcn.004f47e0
mov ecx, eax
mov eax, 0x4a90be59
imul esi
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
shl edx, 4
sub edx, eax
lea eax, [ecx + edx*4]
mov esi, eax
shl esi, 4
sub esi, eax
add esi, esi
add esi, esi
cmp esi, ebp
je 0x4fc1fe
push 2
push 1
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x9c]
push ecx
call fcn.004fbba0
add esp, 0xc
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x50]
call fcn.004f56f0
push 1
lea ecx, [esp + 0x5a]
mov eax, 0x2d
push ecx
lea ecx, [esp + 0x34]
mov word [esp + 0x5e], ax
call fcn.004b7db0
xor edx, edx
test al, al
sete dl
lea ecx, [esp + 0x44]
lea edx, [edx + edx - 1]
imul edx, esi
push edx
call fcn.004f6a60
mov esi, dword [esp + 0xa4]
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.004f4ee0
lea ecx, [esp + 0x44]
call fcn.004f4f00
lea ecx, [esp + 0x2c]
call fcn.004010b0
lea ecx, [esp + 0x34]
call fcn.004ec040
lea ecx, [esp + 0x1c]
call fcn.004010b0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
lea ecx, [esp + 0x2c]
call fcn.004010b0
push ebx
push 1
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0xa4]
push edx
call fcn.004fbba0
mov esi, dword [esp + 0xb4]
add esp, 0xc
push eax
lea eax, [esp + 0x54]
push eax
mov ecx, esi
call fcn.004f56f0
jmp 0x4fc1df
xor edx, edx
cmp ecx, 5
setne dl
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x94]
push edx
push eax
push ecx
call fcn.004efe40
add esp, 4
mov ecx, eax
call fcn.004f13a0
push eax
push esi
mov esi, dword [esp + 0xac]
push esi
call fcn.004fb690
mov edx, dword [esp + 0x68]
add esp, 0xc
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4fc798
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004b7ca0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
xor edx, edx
cmp ecx, 7
setne dl
lea eax, [esp + 0x60]
lea ecx, [esp + 0x9c]
push edx
push eax
call fcn.004ef9d0
mov ecx, eax
call fcn.004f13a0
push eax
push esi
mov esi, dword [esp + 0xac]
push esi
call fcn.004fb690
mov ecx, dword [esp + 0x6c]
add esp, 0xc
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4fc798
mov eax, dword [esp + 0x60]
push eax
call fcn.004b7ca0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
push 1
push 1
lea edx, [esp + 0x4a]
mov ecx, 0x20
push edx
lea eax, [esp + 0x20]
mov word [esp + 0x4e], cx
push eax
mov ecx, esi
call fcn.004be1f0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
sub eax, edx
cmp eax, 5
jl 0x4fc777
cmp eax, 6
jg 0x4fc777
lea edi, [ecx + edx*4 + 0x18]
call fcn.004f4fc0
or esi, 0xffffffff
mov dword [esp + 0x30], eax
cmp eax, esi
je 0x4fc370
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 8]
push 0xa
lea ecx, [esp + 0x17]
push ecx
lea ecx, [eax + edx*4 + 0x1c]
call fcn.004b8170
cmp byte [esp + 0x13], 0
mov dword [esp + 0x20], eax
je 0x4fc370
cmp eax, esi
jne 0x4fc3ff
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
lea edi, [eax + ecx*4 + 0x1c]
call fcn.004f4fc0
mov dword [esp + 0x30], eax
cmp eax, esi
je 0x4fc777
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 8]
mov eax, dword [eax + edx*4 + 0x18]
mov dword [esp + 0x38], eax
mov ecx, 1
lock xadd dword [eax], ecx
push 1
lea eax, [esp + 0x54]
mov edx, 0x2e
push eax
lea ecx, [esp + 0x40]
mov word [esp + 0x58], dx
call fcn.004b7e60
test al, al
je 0x4fc3e8
push 1
lea ecx, [esp + 0x3c]
call fcn.004bbac0
push 0xa
lea ecx, [esp + 0x17]
push ecx
lea ecx, [esp + 0x40]
call fcn.004b8170
cmp byte [esp + 0x13], 0
mov dword [esp + 0x20], eax
jne 0x4fc3ec
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x38]
call fcn.004010b0
cmp dword [esp + 0x20], esi
je 0x4fc777
push 1
push ebp
lea eax, [esp + 0x52]
push eax
mov eax, dword [esp + 0x20]
mov edx, 0x3a
mov word [esp + 0x56], dx
mov edx, dword [eax + 8]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [eax + edx*4 + 0x20]
call fcn.004be1f0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
cmp eax, 3
je 0x4fc4e3
cmp eax, 2
je 0x4fc4e3
push 1
mov eax, 0x3a
mov word [esp + 0x58], ax
mov eax, dword [esp + 0x18]
push ebp
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [eax + 8]
lea edx, [esp + 0x98]
push edx
lea ecx, [eax + ecx*4 + 0x24]
call fcn.004be1f0
push eax
lea ecx, [esp + 0x1c]
call fcn.0040d9e7
lea ecx, [esp + 0x8c]
call fcn.00401113
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
cmp eax, 3
je 0x4fc496
cmp eax, 2
jne 0x4fc4b6
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
push 0xa
lea edx, [esp + 0x17]
push edx
lea ecx, [eax + ecx*4 + 0x20]
call fcn.004b8170
cmp byte [esp + 0x13], 0
mov ebx, eax
jne 0x4fc530
mov esi, dword [esp + 0xa4]
mov ecx, esi
call fcn.004f4ea0
lea ecx, [esp + 0x18]
call fcn.00401113
lea ecx, [esp + 0x14]
call fcn.00401113
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
push 0xa
lea edx, [esp + 0x17]
push edx
lea ecx, [eax + ecx*4 + 0x24]
call fcn.004b8170
cmp byte [esp + 0x13], 0
mov ebx, eax
jne 0x4fc530
mov esi, dword [esp + 0xa4]
mov ecx, esi
call fcn.004f4ea0
lea ecx, [esp + 0x18]
call fcn.00401113
lea ecx, [esp + 0x14]
call fcn.00401113
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
push 0xa
lea edx, [esp + 0x17]
push edx
lea ecx, [eax + ecx*4 + 0x14]
call fcn.004b8170
cmp byte [esp + 0x13], 0
mov edi, eax
je 0x4fc4b6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
push 0xa
lea edx, [esp + 0x17]
push edx
lea ecx, [eax + ecx*4 + 0x18]
call fcn.004b8170
cmp byte [esp + 0x13], 0
mov ebp, eax
je 0x4fc4b6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
sub edx, ecx
cmp edx, 2
jle 0x4fc59d
push 0xa
lea edx, [esp + 0x17]
push edx
lea ecx, [eax + ecx*4 + 0x1c]
call fcn.004b8170
mov esi, eax
jmp 0x4fc59f
xor esi, esi
cmp byte [esp + 0x13], 0
je 0x4fc4b6
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
push eax
push ecx
push ebx
lea ecx, [esp + 0x64]
call fcn.004f5820
cmp edi, 0x18
jae 0x4fc5cd
cmp ebp, 0x3c
jae 0x4fc5cd
cmp esi, 0x3c
jb 0x4fc5d7
mov dword [esp + 0x3c], 0xffffffff
jmp 0x4fc5f6
mov edx, edi
shl edx, 4
sub edx, edi
lea eax, [ebp + edx*4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea edx, [esi + ecx*4]
imul edx, edx, 0x3e8
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
sub edx, ecx
cmp edx, 5
jne 0x4fc626
mov esi, dword [esp + 0xa4]
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call fcn.004f56f0
jmp 0x4fc4c4
mov eax, dword [eax + ecx*4 + 0x28]
mov dword [esp + 0x28], eax
mov edx, 1
lock xadd dword [eax], edx
push 0
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x78], 0x632f4c
call fcn.004b9520
test al, al
jne 0x4fc66f
mov esi, dword [esp + 0xa4]
mov ecx, esi
call fcn.004f4ea0
lea ecx, [esp + 0x28]
call fcn.004010b0
jmp 0x4fc4c4
push 1
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x2c]
call fcn.004f56f0
mov eax, dword [esp + 0x28]
cmp dword [eax + 8], 3
jle 0x4fc75f
mov eax, dword [eax + 0xc]
mov bp, word [eax + 6]
cmp bp, 0x2b
je 0x4fc6ca
cmp bp, 0x2d
je 0x4fc6ca
mov esi, dword [esp + 0xa4]
mov ecx, esi
call fcn.004f4ea0
lea ecx, [esp + 0x20]
call fcn.004f4f00
lea ecx, [esp + 0x28]
call fcn.004010b0
jmp 0x4fc4c4
push 0xa
lea ecx, [esp + 0x17]
push ecx
push 2
push 4
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x3c]
call fcn.004b9440
mov ecx, eax
call fcn.004b8170
lea ecx, [esp + 0x74]
mov esi, eax
call fcn.004010b0
cmp byte [esp + 0x13], 0
je 0x4fc6a5
push 0xa
lea eax, [esp + 0x17]
push eax
push 0xffffffffffffffff
push 6
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004b9440
mov ecx, eax
call fcn.004b8170
lea ecx, [esp + 0x7c]
mov edi, eax
call fcn.004010b0
cmp byte [esp + 0x13], 0
je 0x4fc6a5
mov edx, esi
shl edx, 4
sub edx, esi
lea ecx, [edi + edx*4]
mov eax, ecx
shl eax, 4
sub eax, ecx
add eax, eax
add eax, eax
cmp bp, 0x2d
jne 0x4fc755
neg eax
push eax
lea ecx, [esp + 0x24]
call fcn.004f6a60
mov esi, dword [esp + 0xa4]
push 0
push esi
lea ecx, [esp + 0x28]
call fcn.004f6850
jmp 0x4fc6b3
mov esi, dword [esp + 0xa4]
mov ecx, esi
call fcn.004f4ea0
jmp 0x4fc4cd
mov esi, dword [esp + 0xa4]
mov ecx, esi
call fcn.004f4ea0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret