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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
push edi
mov edi, dword [esi]
mov eax, dword [edi + 0x20]
and eax, 0x4000
or eax, 0
je 0x4c9af0
mov eax, dword [ebp + 8]
cmp byte [eax + 0x2b], 0
jne 0x4c9af0
mov ebx, dword [esi + 8]
xor edx, edx
mov dword [esp + 0x10], edx
test ebx, ebx
jne 0x4c98b8
cmp dword [esi + 0x74], edx
jne 0x4c98ae
test byte [edi + 0x50], 8
jne 0x4c98ae
mov byte [esi + 0x17], 1
call fcn.0048e2e0
mov ebx, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax]
add ecx, 0x38
push 0
call fcn.0046eae0
add esp, 4
cmp dword [eax + 8], 0
jne 0x4c995a
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x30]
test ecx, ecx
je 0x4c9af0
cmp byte [ecx + 0x18], 0
jne 0x4c9903
mov eax, dword [edi + 0x20]
and eax, 0x80000
or eax, 0
jne 0x4c9903
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x4c98e2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec dword [esi + 0x38]
mov ecx, dword [ebx + 0x74]
mov edx, dword [esi + 0x38]
mov dword [esp + 0x10], edx
cmp dword [ebx + 0x78], ecx
jg 0x4c992b
push 0
push edx
push 1
mov edx, 0x30
mov ecx, ebx
call fcn.0048e530
add esp, 0xc
jmp 0x4c995a
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0x30
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push ecx
push 0
mov ecx, edi
mov byte [esi + 0x97], 1
call fcn.004a7270
add esp, 8
mov edx, eax
mov ecx, esi
call fcn.004c2290
mov byte [esi + 0x97], 0
add esp, 0xc
mov eax, dword [edi + 0x20]
and eax, 0x80000
or eax, 0
jne 0x4c9ac0
mov ecx, dword [ebx + 0x74]
lea edi, [ecx + 2]
cmp dword [ebx + 0x78], ecx
jg 0x4c99b9
push eax
push edi
push eax
lea edx, [eax + 0x30]
mov ecx, ebx
call fcn.0048e530
add esp, 0xc
jmp 0x4c99e8
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0x30
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [esi + 8]
test edi, edi
jne 0x4c9a09
cmp dword [esi + 0x74], edi
jne 0x4c9a00
mov eax, dword [esi]
test byte [eax + 0x50], 8
jne 0x4c9a00
mov byte [esi + 0x17], 1
mov ecx, esi
call fcn.0048e2e0
mov edi, eax
mov ecx, dword [esi + 0x74]
test ecx, ecx
cmovne esi, ecx
mov byte [esi + 0x15], 1
mov edx, dword [edi + 0x74]
cmp dword [edi + 0x78], edx
jg 0x4c9a39
push 0
push 2
push 0x313
mov edx, 0x46
mov ecx, edi
call fcn.0048e530
add esp, 0xc
mov edx, eax
jmp 0x4c9a6c
lea eax, [edx + 1]
mov dword [edi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 4], 0x313
mov dword [eax + ecx*4 + 8], 2
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi]
cmp byte [ecx + 0x57], 0
je 0x4c9a83
push 0
or edx, 0xffffffff
call fcn.0048f040
add esp, 4
jmp 0x4c9aa9
test edx, edx
jns 0x4c9a8b
mov edx, dword [edi + 0x74]
dec edx
mov eax, dword [edi + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea edx, [eax + ecx*4]
je 0x4c9aa9
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.0048f290
add esp, 8
mov eax, dword [edi + 0x74]
test eax, eax
jle 0x4c9ac0
lea ecx, [eax + eax*4]
mov edx, 4
mov eax, dword [edi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x10]
test edx, edx
je 0x4c9af0
mov ecx, dword [ebx + 0xc]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4c9ae7
push edx
mov edx, ebx
call fcn.0048ed50
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebx + 0x74]
mov dword [ecx + edx*4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret