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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x62f570]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 0x24]
add ecx, ecx
mov eax, 0xaaaaaaab
mul ecx
push ebx
xor ebx, ebx
shr edx, 1
push esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ebx
jmp 0x4c69c7
mov edx, dword [esp + 0x20]
movsx ecx, byte [edi + 0x44]
mov eax, dword [edi + 0x74]
mov dword [esp + 0x18], ecx
mov dword [esp + 8], eax
test ecx, ecx
jne 0x4c6a18
cmp byte [eax + 0xc], cl
je 0x4c6bb5
lea esi, [edi + 0x7c]
push esi
call fcn.004c6860
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4c6bb5
mov ecx, dword [esp + 8]
xor edx, edx
mov word [edi + 0x46], dx
mov edx, dword [esi]
mov byte [edi + 0x44], 1
mov word [edi + 0x48], ax
mov dword [edi + 0x78], ecx
mov dword [edi + 0x74], edx
jmp 0x4c6bad
cmp byte [eax + 0xc], 0
jne 0x4c6a2a
movzx esi, word [eax + 0x14]
cmp esi, edx
jle 0x4c6bb5
mov edx, dword [edi + ecx*4 + 0x74]
movzx ecx, word [edi + ecx*2 + 0x46]
mov esi, dword [edx + 0x48]
test byte [esi + 0x1c], 4
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0xc], edx
je 0x4c6a6f
mov ebx, dword [ecx + 0x18]
cmp ebx, dword [esi + 0x18]
jb 0x4c6a6f
cmp dword [ecx + 0x60], 0
je 0x4c6aac
mov ecx, esi
call fcn.004b6330
test eax, eax
je 0x4c6a6b
push esi
call fcn.004b90e0
add esp, 4
jmp 0x4c6a9a
xor eax, eax
jmp 0x4c6a9a
mov ebx, dword [ecx + 0x28]
test ebx, ebx
jne 0x4c6b3d
mov edx, dword [ecx + 0x94]
cmp edx, dword [ecx + 0x98]
jbe 0x4c6a93
push esi
call fcn.004ba5a0
add esp, 4
jmp 0x4c6a9a
mov eax, esi
call fcn.004ba4e0
mov edx, dword [esp + 0xc]
mov ebx, eax
mov eax, dword [esp + 8]
test ebx, ebx
jne 0x4c6b3d
cmp byte [eax + 3], 0
je 0x4c6ae5
cmp byte [eax + 0xc], 1
jne 0x4c6ae5
mov cx, word [eax + 0x1a]
cmp cx, word [eax + 0x16]
jne 0x4c6ae5
cmp dword [edx + 4], 1
je 0x4c6ae5
movzx ecx, word [edx + 0x16]
cmp ecx, dword [esp + 0x1c]
jne 0x4c6ae5
lea ecx, [esp + 0x24]
push ecx
push eax
push edx
call fcn.004c5240
add esp, 0xc
mov ebx, eax
jmp 0x4c6b39
mov edx, dword [edi + 0x14]
mov eax, dword [edx + 0x20]
push eax
call fcn.004b5100
mov edx, dword [esp + 0x20]
mov esi, eax
movzx eax, byte [edi + 3]
xor ecx, ecx
add esp, 4
and eax, 1
cmp dword [esp + 0x18], 1
push eax
sete cl
mov dword [esp + 0x18], esi
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, esi
call fcn.004c5490
mov ebx, eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x4c6b35
mov esi, eax
call fcn.004b5220
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 8]
mov byte [eax + 0xc], 0
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], 0x20
je 0x4c6b9a
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov esi, dword [edx]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
dec eax
push edx
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [esp + 0x20]
push 0
push eax
call fcn.0058da40
mov ecx, dword [esi + 0x48]
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
call ecx
add esp, 0x10
jmp 0x4c6b9f
call fcn.004b4a10
dec byte [edi + 0x44]
movsx edx, byte [edi + 0x44]
mov eax, dword [edi + edx*4 + 0x78]
mov dword [edi + 0x74], eax
test ebx, ebx
je 0x4c69c3
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4c6bc2
call fcn.004b5220
mov ecx, dword [esp + 0x34]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0057ffd2
mov esp, ebp
pop ebp
ret