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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1fc
mov edi, dword [esp + 0x210]
mov ebx, dword [esp + 0x214]
mov esi, dword [esp + 0x218]
mov eax, dword [edi + 0x58]
cmp eax, 1
jle 0x4c9da0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4c9ee5
test esi, esi
js 0x4c9da0
cmp esi, dword [edi + 0x14]
jg 0x4c9da0
jl 0x4c99c2
cmp ebx, dword [edi + 0x10]
ja 0x4c9da0
cmp eax, 2
je 0x4c99e8
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0x60]
cmp esi, dword [eax + edx*8 + 4]
jl 0x4c9d40
jle 0x4c9daa
inc edx
cmp esi, dword [eax + edx*8 + 4]
jge 0x4c9d30
lea ecx, [edi + 0x1e0]
mov dword [esp + 0x44], ecx
mov dword [edi + 0x50], 0xffffffff
mov dword [edi + 0x54], 0xffffffff
lea ecx, [edi + 0x78]
mov dword [esp + 0x38], ecx
mov eax, dword [edi + 0x5c]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.004e7650
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
call fcn.004d1920
mov edx, dword [edi]
test edx, edx
je 0x4c9e9d
mov eax, dword [edi + 0x2c4]
test eax, eax
je 0x4c9e9d
mov dword [esp + 0xc], 0
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp], edx
call eax
inc eax
je 0x4c9e9d
mov dword [edi + 8], ebx
mov dword [edi + 0xc], esi
lea eax, [edi + 0x18]
mov dword [esp], eax
call fcn.004e7560
mov eax, dword [edi + 0x5c]
mov dword [esp + 4], eax
lea ebp, [esp + 0x88]
mov dword [esp], ebp
call fcn.004e6220
mov dword [esp], ebp
call fcn.004e75b0
mov dword [esp + 0x48], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x34], 0
lea esi, [esp + 0x58]
cmp dword [edi + 0x58], 2
jg 0x4c9bb6
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4c9e02
mov edx, esi
mov eax, edi
call fcn.004c74e0
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], edx
test edx, edx
js 0x4c9e54
cmp dword [edi + 0x58], 2
jg 0x4c9d00
mov dword [esp], esi
call fcn.004e5fc0
mov ebx, eax
mov eax, dword [edi + 0x34]
cmp eax, 0
jle 0x4c9e2a
mov ecx, dword [edi + 0x40]
cmp dword [ecx], ebx
je 0x4c9e30
xor edx, edx
lea esi, [esi]
lea edi, [edi]
inc edx
cmp edx, eax
je 0x4c9aa9
cmp dword [ecx + edx*4], ebx
jne 0x4c9b10
lea ecx, [edx*8]
mov dword [edi + 0x60], edx
mov dword [edi + 0x5c], ebx
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 0x2c], ecx
call fcn.004e7650
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.004e7650
mov dword [edi + 0x58], 3
mov edx, dword [edi + 0x3c]
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
cmp dword [edx + ecx + 4], ebx
jg 0x4c9b80
jl 0x4c9cf0
mov ebx, dword [esp + 0x40]
cmp dword [edx + ecx], ebx
jb 0x4c9cf0
mov esi, esi
lea edi, [edi]
mov dword [esp + 0x48], eax
mov dword [esp + 4], esi
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
call fcn.004e70a0
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.004e70a0
mov dword [esp], esi
call fcn.004e5ef0
mov dword [esp + 0x3c], eax
cmp dword [edi + 0x58], 2
jle 0x4c9ab3
lea ebx, [esp + 0x68]
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.004e7700
test eax, eax
jle 0x4c9ab3
mov eax, dword [edi + 0x60]
shl eax, 5
add eax, dword [edi + 0x48]
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x4c9de2
lea edx, [esp + 0x68]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ce210
mov edx, eax
test eax, eax
js 0x4c9e39
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x4c9c10
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x4c9e7c
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4c9c25
mov eax, dword [esp + 0x34]
add eax, edx
sar eax, 2
add dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
mov eax, ecx
and eax, ebx
inc eax
je 0x4c9d70
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov ebx, dword [edi + 0x60]
mov esi, dword [edi + 0x44]
mov ecx, ebx
shl ecx, 4
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, dword [esi + ecx]
sbb edx, dword [esi + ecx + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
test edx, edx
js 0x4c9e15
test ebx, ebx
jle 0x4c9c94
add esi, 8
lea ebx, [ecx + esi]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea esi, [esi]
add eax, dword [esi]
adc edx, dword [esi + 4]
add esi, 0x10
cmp esi, ebx
jne 0x4c9c80
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x4c]
mov ecx, edx
sar ecx, 0x1f
mov ebx, edx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, ebx
sbb edx, ecx
test edx, edx
js 0x4c9d80
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], edx
mov dword [esp], ebp
call fcn.004e6080
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
xor eax, eax
add esp, 0x1fc
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
jmp 0x4c9b80
mov ebx, dword [edi + 0x5c]
mov dword [esp], esi
call fcn.004e5fc0
cmp ebx, eax
je 0x4c9d1f
mov dword [esp], esi
call fcn.004e5ed0
test eax, eax
jne 0x4c9db4
cmp dword [edi + 0x58], 2
jg 0x4c9b84
jmp 0x4c9ae2
jg 0x4c9d40
cmp ebx, dword [eax + edx*8]
jb 0x4c99e8
nop
lea esi, [esi]
lea ecx, [edi + 0x1e0]
mov dword [esp + 0x44], ecx
mov dword [esp], ecx
call fcn.004d0720
lea eax, [edi + 0x250]
mov dword [esp], eax
call fcn.004d05e0
mov dword [edi + 0x58], 2
jmp 0x4c99f2
mov dword [esp + 0x34], edx
jmp 0x4c9aa9
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
jmp 0x4c9cb9
mov eax, 0xffffff7d
jmp 0x4c9cdf
cmp ebx, dword [eax + edx*8]
jb 0x4c9d40
jmp 0x4c99dd
mov ebx, dword [esp + 0x44]
mov dword [esp], ebx
call fcn.004d0720
lea eax, [edi + 0x250]
mov dword [esp], eax
call fcn.004d05e0
mov dword [edi + 0x58], 2
mov dword [esp], ebp
call fcn.004e6080
jmp 0x4c9d1f
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
call fcn.004e7700
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4c9abf
mov dword [edi + 0x50], 0xffffffff
mov dword [edi + 0x54], 0xffffffff
jmp 0x4c9cb9
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
jmp 0x4c9c6a
je 0x4c9aa9
xor ecx, ecx
xor edx, edx
jmp 0x4c9b21
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
call fcn.004e7700
xor edx, edx
jmp 0x4c9c25
cmp dword [edi + 0x58], 1
jle 0x4c9eef
mov eax, dword [edi + 4]
test eax, eax
je 0x4c9eef
mov eax, dword [edi + 0x34]
test eax, eax
js 0x4c9eef
mov eax, edi
call fcn.004c9320
jmp 0x4c9cb3
mov dword [esp + 4], 0
mov ebx, dword [esp + 0x38]
mov dword [esp], ebx
mov dword [esp + 0x2c], eax
call fcn.004e7700
mov edx, dword [esp + 0x2c]
jmp 0x4c9c25
mov dword [edi + 0x50], 0xffffffff
mov dword [edi + 0x54], 0xffffffff
lea eax, [esp + 0x88]
mov dword [esp], eax
call fcn.004e6080
mov ebx, dword [esp + 0x44]
mov dword [esp], ebx
call fcn.004d0720
lea eax, [edi + 0x250]
mov dword [esp], eax
call fcn.004d05e0
mov dword [edi + 0x58], 2
mov eax, 0xffffff77
jmp 0x4c9cdf
mov eax, 0xffffff76
jmp 0x4c9cdf
mov eax, 0xffffff7d
mov edx, 0xffffffff
jmp 0x4c9cb3