Function at 0x4fc830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
lea edi, [ebp - 0x78]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0x4c]
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + edx*2 + 0x4e]
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0x4c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax*4 + 0x78]
xor edx, edx
mov dx, word [eax + 0x12]
cmp ecx, edx
jge 0x4fc88f
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x49]
cmp ecx, 1
je 0x4fc899
mov eax, 1
jmp 0x4fcb5e
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0x4c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + ecx*2 + 0x4e]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4 + 0x78]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp - 0x18]
xor ebx, ebx
mov bl, byte [ecx + eax*2]
shl ebx, 8
mov ecx, dword [ebp - 0x10]
mov esi, dword [ecx + 0x40]
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [esi + ecx*2 + 1]
or ebx, eax
and edx, ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x38]
add ecx, edx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx + 5]
test eax, eax
jne 0x4fc92c
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f7ff0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4fc92c
mov eax, dword [ebp - 0xc]
jmp 0x4fcb5e
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.004dfc60
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4fc954
mov eax, dword [ebp - 0xc]
jmp 0x4fcb5e
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 0
jne 0x4fc976
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [edx + 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004f85f0
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004d7780
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4fc996
mov eax, dword [ebp - 0xc]
jmp 0x4fcb5e
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004f8670
add esp, 0xc
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x20]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.004f9120
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x4fc9d8
mov eax, dword [ebp - 0xc]
jmp 0x4fcb5e
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 5]
test ecx, ecx
jne 0x4fcadc
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0x4c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x78]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x7c]
mov eax, dword [edx + 0x48]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov dx, word [ecx + 0x14]
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cx, word [eax + 0x12]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x40]
xor ebx, ebx
mov bl, byte [eax + ecx*2 - 2]
shl ebx, 8
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov ax, word [ecx + 0x12]
mov esi, eax
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + 0x40]
xor eax, eax
mov al, byte [ecx + esi*2 - 1]
or ebx, eax
and edx, ebx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x38]
add ecx, edx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.004f9e60
add esp, 8
and eax, 0xffff
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x50]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004d7780
add esp, 4
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 4
push edx
mov eax, dword [ebp - 0x14]
sub eax, 4
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.004f97f0
add esp, 0x1c
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x28]
xor eax, eax
mov ax, word [edx + 0x12]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004f9120
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x4fcadc
mov eax, dword [ebp - 0xc]
jmp 0x4fcb5e
mov edx, dword [ebp + 8]
push edx
call fcn.004fa1a0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4fcb49
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0x4c]
cmp ecx, dword [ebp - 0x1c]
jle 0x4fcb49
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0x4c]
cmp eax, dword [ebp - 0x1c]
jle 0x4fcb3a
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0x4c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 0x78]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x4c]
sub cx, 1
mov edx, dword [ebp + 8]
mov word [edx + 0x4c], cx
call fcn.004df8c0
add esp, 4
jmp 0x4fcafd
mov eax, dword [ebp + 8]
push eax
call fcn.004fa1a0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4fcb5b
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f6ff0
add esp, 4
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
add esp, 0x78
cmp ebp, esp
call sub.MSVCRT.dll__chkesp
mov esp, ebp
pop ebp
ret