Function at 0x4e9930
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 0x4e9967
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 0x4e99b6
cmp byte [ebx + 0xc], al
je 0x4e9b2f
lea esi, [ebp + 0x7c]
push esi
mov edi, ebx
call fcn.004e9830
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e9b2f
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 0x4e9b27
cmp byte [ebx + 0xc], 0
jne 0x4e99c8
movzx ecx, word [ebx + 0x14]
cmp ecx, edx
jle 0x4e9b2f
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 0x4e9a09
mov ecx, dword [eax + 0x18]
cmp ecx, dword [edi + 0x18]
jb 0x4e9a09
cmp dword [eax + 0x60], 0
je 0x4e9a3e
mov ecx, edi
call fcn.004b0250
test eax, eax
je 0x4e9a05
push edi
call fcn.004c4100
add esp, 4
jmp 0x4e9a34
xor eax, eax
jmp 0x4e9a34
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4e9a14
mov edi, ecx
jmp 0x4e9a36
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
jbe 0x4e9a2d
push edi
call fcn.004c43f0
add esp, 4
jmp 0x4e9a34
mov eax, edi
call fcn.004c4330
mov edi, eax
test edi, edi
jne 0x4e9abf
cmp byte [ebx + 3], 0
je 0x4e9a77
cmp byte [ebx + 0xc], 1
jne 0x4e9a77
mov ax, word [ebx + 0x1a]
cmp ax, word [ebx + 0x16]
jne 0x4e9a77
cmp dword [esi + 4], 1
je 0x4e9a77
movzx ecx, word [esi + 0x16]
cmp ecx, dword [esp + 0x18]
jne 0x4e9a77
lea edx, [esp + 0x24]
push edx
push ebx
push esi
call fcn.004e8200
add esp, 0xc
mov edi, eax
jmp 0x4e9abf
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x20]
push eax
call fcn.004bcea0
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.004e8450
mov esi, dword [esp + 0x24]
add esp, 0x14
mov edi, eax
test esi, esi
je 0x4e9ab7
call fcn.004af880
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 0x4e9b14
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.00588bf0
push edx
push eax
mov eax, dword [esi + 0x48]
push ebx
call eax
add esp, 0x10
jmp 0x4e9b19
call fcn.004af220
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 0x4e9963
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4e9b3c
call fcn.004af880
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00584267
add esp, 0x28
ret