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

Disassembly:
sub esp, 0x28
mov eax, dword [0x63727c]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebp, dword [esp + 0x34]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x24]
add ecx, ecx
mov eax, 0xaaaaaaab
mul ecx
push esi
push edi
xor edi, edi
shr edx, 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], edi
jmp 0x4e9b27
mov edx, dword [esp + 0x1c]
movsx eax, byte [ebp + 0x44]
mov ebx, dword [ebp + 0x74]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
test eax, eax
jne 0x4e9b76
cmp byte [ebx + 0xc], al
je 0x4e9cef
lea esi, [ebp + 0x7c]
push esi
mov edi, ebx
call fcn.004e99f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e9cef
mov ecx, dword [esi]
xor edx, edx
mov byte [ebp + 0x44], 1
mov word [ebp + 0x46], dx
mov word [ebp + 0x48], ax
mov dword [ebp + 0x78], ebx
mov dword [ebp + 0x74], ecx
jmp 0x4e9ce7
cmp byte [ebx + 0xc], 0
jne 0x4e9b88
movzx ecx, word [ebx + 0x14]
cmp ecx, edx
jle 0x4e9cef
mov esi, dword [ebp + eax*4 + 0x74]
movzx edx, word [ebp + eax*2 + 0x46]
mov edi, dword [esi + 0x48]
test byte [edi + 0x1c], 4
mov eax, dword [edi + 0x14]
mov dword [esp + 0x18], edx
je 0x4e9bc9
mov ecx, dword [eax + 0x18]
cmp ecx, dword [edi + 0x18]
jb 0x4e9bc9
cmp dword [eax + 0x60], 0
je 0x4e9bfe
mov ecx, edi
call fcn.004b0410
test eax, eax
je 0x4e9bc5
push edi
call fcn.004c42b0
add esp, 4
jmp 0x4e9bf4
xor eax, eax
jmp 0x4e9bf4
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4e9bd4
mov edi, ecx
jmp 0x4e9bf6
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
jbe 0x4e9bed
push edi
call fcn.004c45a0
add esp, 4
jmp 0x4e9bf4
mov eax, edi
call fcn.004c44e0
mov edi, eax
test edi, edi
jne 0x4e9c7f
cmp byte [ebx + 3], 0
je 0x4e9c37
cmp byte [ebx + 0xc], 1
jne 0x4e9c37
mov ax, word [ebx + 0x1a]
cmp ax, word [ebx + 0x16]
jne 0x4e9c37
cmp dword [esi + 4], 1
je 0x4e9c37
movzx ecx, word [esi + 0x16]
cmp ecx, dword [esp + 0x18]
jne 0x4e9c37
lea edx, [esp + 0x24]
push edx
push ebx
push esi
call fcn.004e83c0
add esp, 0xc
mov edi, eax
jmp 0x4e9c7f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x20]
push eax
call fcn.004bd050
movzx ecx, byte [ebp + 3]
and ecx, 1
xor edx, edx
cmp dword [esp + 0x24], 1
push ecx
sete dl
mov ebx, eax
mov eax, dword [esp + 0x20]
mov ecx, ebx
push edx
push eax
push esi
call fcn.004e8610
mov esi, dword [esp + 0x24]
add esp, 0x14
mov edi, eax
test esi, esi
je 0x4e9c77
call fcn.004afa40
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x48]
mov byte [ebx + 0xc], 0
test byte [eax + 0x1c], 0x20
je 0x4e9cd4
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov ebx, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov esi, dword [ebx]
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.00588dd0
push edx
push eax
mov eax, dword [esi + 0x48]
push ebx
call eax
add esp, 0x10
jmp 0x4e9cd9
call fcn.004af3e0
dec byte [ebp + 0x44]
movsx ecx, byte [ebp + 0x44]
mov edx, dword [ebp + ecx*4 + 0x78]
mov dword [ebp + 0x74], edx
test edi, edi
je 0x4e9b23
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4e9cfc
call fcn.004afa40
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00584447
add esp, 0x28
ret