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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 4], edi
cmp byte [esi + 0x49], 4
mov eax, dword [esi]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], eax
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
jne 0x4cd676
mov eax, dword [esi + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 8]
mov edx, dword [esi + 0x3c]
test ecx, ecx
je 0x4cd6ae
cmp ecx, esi
je 0x4cd68d
test edx, edx
je 0x4cd696
cmp dword [ecx + 0x3c], edx
je 0x4cd696
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x4cd680
jmp 0x4cd6ae
test ecx, ecx
je 0x4cd6ae
push esi
call fcn.004c5e70
add esp, 4
test eax, eax
jne 0x4cd84d
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0x10], 0
mov ebx, dword [ebp + 0xc]
jne 0x4cd709
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x4cd6df
mov ecx, dword [ebp + 8]
test byte [eax + 0x48], 0x10
je 0x4cd6d8
cmp dword [eax + 0x18], ecx
jne 0x4cd6d8
cmp dword [eax + 0x1c], ebx
jne 0x4cd6d8
mov byte [eax + 0x49], 0
mov eax, dword [eax + 8]
test eax, eax
jne 0x4cd6c4
test byte [esi + 0x48], 2
mov eax, dword [ebp + 8]
je 0x4cd70c
test ebx, ebx
jl 0x4cd70c
jg 0x4cd6f2
test eax, eax
je 0x4cd70c
sub eax, 1
mov ecx, ebx
sbb ecx, 0
cmp dword [esi + 0x18], eax
jne 0x4cd709
cmp dword [esi + 0x1c], ecx
jne 0x4cd709
or edi, 0xffffffff
jmp 0x4cd731
mov eax, dword [ebp + 8]
test edi, edi
jne 0x4cd734
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0x1c]
mov ecx, esi
push ebx
push eax
call fcn.004c5ee0
add esp, 0x10
test eax, eax
jne 0x4cd84d
mov edi, dword [ebp - 4]
mov dword [ebp + 0x20], edi
movsx eax, word [esi + 0x4c]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
push dword [ebp + 0x14]
mov edi, dword [esi + eax*4 + 0x78]
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
push ebx
push ecx
push dword [ebp - 8]
mov eax, dword [eax + 0x50]
mov ecx, edi
mov edx, eax
mov dword [ebp - 0x10], eax
call fcn.004cb490
mov ecx, eax
add esp, 0x1c
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x4cd84b
movsx eax, word [esi + 0x4c]
movzx edx, word [esi + eax*2 + 0x4e]
lea ecx, [esi + eax*2]
mov eax, dword [ebp + 0x20]
mov ebx, edx
test eax, eax
jne 0x4cd7ef
mov ecx, dword [edi + 0x44]
call fcn.004c2750
mov ecx, eax
test ecx, ecx
jne 0x4cd84b
mov eax, dword [edi + 0x40]
movzx edx, byte [eax + ebx*2]
movzx eax, byte [eax + ebx*2 + 1]
shl edx, 8
or edx, eax
movzx eax, word [edi + 0x14]
and edx, eax
add edx, dword [edi + 0x38]
cmp byte [edi + 5], cl
jne 0x4cd7c0
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ecx], eax
lea eax, [ebp + 0x20]
mov ecx, edi
push eax
call fcn.004cb2b0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
mov edx, ebx
mov ecx, edi
push eax
movzx eax, word [ebp + 0x20]
push eax
call fcn.004cb860
mov ecx, dword [ebp - 4]
add esp, 8
test ecx, ecx
jne 0x4cd84b
jmp 0x4cd802
jns 0x4cd802
cmp word [edi + 0x12], 0
jbe 0x4cd802
lea eax, [edx + 1]
mov word [ecx + 0x4e], ax
movzx ebx, ax
lea eax, [ebp - 4]
mov edx, ebx
push eax
push 0
push 0
push dword [ebp - 0xc]
mov ecx, edi
push dword [ebp - 0x10]
call fcn.004cb990
mov ecx, dword [ebp - 4]
xor eax, eax
add esp, 0x14
mov word [esi + 0x2c], ax
test ecx, ecx
jne 0x4cd84b
cmp byte [edi + 1], al
je 0x4cd84b
and byte [esi + 0x48], 0xfd
mov ecx, esi
call fcn.004cd490
mov ecx, eax
movsx eax, word [esi + 0x4c]
mov eax, dword [esi + eax*4 + 0x78]
mov byte [eax + 1], 0
mov byte [esi + 0x49], 0
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret