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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 2], 0
movzx esi, byte [edi + 0xa]
lea ecx, [esi + edx]
je 0x4e9cb9
mov ecx, dword [ebp + 0x10]
mov edi, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x20]
mov eax, dword [ecx + 0x10]
add ebx, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], eax
cmp ebx, 0x80
jae 0x4e9c87
lea eax, [esi + edx]
mov byte [eax], bl
mov eax, 1
jmp 0x4e9ca0
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
call fcn.00523410
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 0xc]
push dword [ecx + 0xc]
movzx eax, al
push dword [ecx + 8]
add esi, eax
lea eax, [esi + edx]
push eax
call fcn.00523410
add esp, 0xc
jmp 0x4e9cee
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 8]
mov edi, ebx
mov eax, dword [eax]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
cmp ebx, 0x80
jae 0x4e9cdd
mov byte [ecx], bl
mov eax, 1
jmp 0x4e9ceb
mov eax, ebx
cdq
push edx
push eax
push ecx
call fcn.00523410
add esp, 0xc
movzx eax, al
mov ecx, dword [ebp + 8]
add esi, eax
mov dword [ebp - 0x18], esi
add esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
movzx eax, word [ecx + 0xe]
mov dword [ebp - 0x20], eax
cmp ebx, eax
jg 0x4e9d3f
mov ecx, dword [ebp - 0x18]
mov eax, 4
add ecx, ebx
cmp ecx, eax
push edi
push dword [ebp - 4]
cmovl ecx, eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [eax], ecx
call fcn.0048d3b0
sub ebx, edi
lea eax, [esi + edi]
push ebx
push 0
push eax
call fcn.0048deb0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx esi, word [ecx + 0x10]
xor edx, edx
mov ecx, dword [ecx + 0x34]
mov eax, ebx
sub eax, esi
mov edi, dword [ebp + 8]
mov ecx, dword [ecx + 0x28]
sub ecx, 4
div ecx
lea eax, [edx + esi]
mov edx, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
cmovle esi, eax
mov eax, dword [ebp + 0x14]
add edx, esi
lea ecx, [edx + 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [edi + 0x34]
add eax, edx
mov dword [ebp - 0x20], eax
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
mov dword [ebp + 0xc], edi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], esi
cmp ecx, dword [ebp - 8]
cmovle esi, ecx
cmp edx, esi
jl 0x4e9da7
push esi
push dword [ebp - 4]
push eax
call fcn.0048d3b0
jmp 0x4e9dc2
test edx, edx
jle 0x4e9db9
push edx
push dword [ebp - 4]
mov esi, edx
push eax
call fcn.0048d3b0
jmp 0x4e9dc2
push esi
push 0
push eax
call fcn.0048deb0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
sub ecx, esi
mov dword [ebp - 0xc], ecx
test ecx, ecx
jle 0x4e9f67
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
add eax, esi
add dword [ebp - 4], esi
sub edx, esi
sub dword [ebp - 8], esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
jne 0x4e9d91
cmp byte [edi + 0x11], 0
mov dword [ebp + 8], 0
mov dword [ebp - 8], ebx
je 0x4e9e5e
jmp 0x4e9e05
mov edi, dword [ebp + 0xc]
inc ebx
cmp ebx, 2
jae 0x4e9e12
mov edi, dword [edi + 0x24]
xor eax, eax
jmp 0x4e9e46
mov eax, 0xcccccccd
lea esi, [ebx - 2]
mul dword [edi + 0x28]
mov eax, esi
mov edi, dword [edi + 0x24]
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov eax, dword [0x5ac2d0]
sub esi, edx
xor edx, edx
div edi
lea ecx, [eax - 1]
xor eax, eax
cmp esi, ecx
sete al
add eax, 2
add eax, esi
cmp eax, ebx
je 0x4e9e02
mov eax, dword [0x5ac2d0]
xor edx, edx
div edi
mov edi, dword [ebp + 0xc]
inc eax
cmp ebx, eax
je 0x4e9e05
mov dword [ebp - 0x1c], ebx
push 0
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push edi
call fcn.004d99e0
mov ebx, dword [ebp - 0x1c]
add esp, 0x14
cmp byte [edi + 0x11], 0
mov esi, eax
mov dword [ebp - 0x14], esi
je 0x4e9ebc
test esi, esi
jne 0x4e9f4e
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
test eax, eax
push eax
setne al
add al, 3
movzx eax, al
push eax
push ebx
push edi
call fcn.004fa620
mov esi, dword [ebp - 0x14]
add esp, 0x14
test esi, esi
je 0x4e9ec4
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e9ebc
push eax
call fcn.004fbc40
add esp, 4
test esi, esi
jne 0x4e9f4e
mov ecx, dword [ebp - 0x20]
mov eax, ebx
bswap eax
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4e9f28
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4e9f1f
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.0048c6e0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [ebp + 0xc]
add esp, 0x10
jmp 0x4e9f28
push edx
call fcn.0051fb60
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x20], ecx
mov dword [ecx], 0
mov eax, dword [eax + 0x38]
mov esi, dword [edi + 0x28]
add eax, 4
mov dword [ebp - 0x14], eax
sub esi, 4
jmp 0x4e9d88
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4e9f5e
push eax
call fcn.004fbc40
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4e9f77
push eax
call fcn.004fbc40
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret