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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [esp + 0x10], ebx
add esi, edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 0
test ebx, ebx
jne 0x4e7cda
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 4]
push ebx
call eax
add esp, 4
cmp esi, eax
jbe 0x4e7cf6
mov eax, dword [ebx + 4]
push ebx
call eax
add esp, 4
mov dword [esp + 0x34], eax
mov esi, eax
cmp edi, esi
jge 0x4e805f
mov edi, edi
push 4
mov eax, edi
cdq
push edx
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebx]
push ebx
call eax
add esp, 0x14
cmp eax, 4
je 0x4e7d1e
or esi, 0xffffffff
jmp 0x4e7d41
mov eax, dword [esp + 0x1c]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
movzx eax, byte [esp + 0x1e]
shl esi, 8
or esi, eax
movzx eax, byte [esp + 0x1f]
shl esi, 8
or esi, eax
push esi
mov edx, edi
mov ecx, ebx
call fcn.004e7b30
add esp, 4
test eax, eax
je 0x4e7d59
add edi, eax
jmp 0x4e7f00
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.004e79c0
test eax, eax
je 0x4e805f
cmp dword [esp + 0x2c], 3
mov ecx, dword [esp + 0x58]
jge 0x4e7eee
cmp dword [esp + 0x44], 1
jne 0x4e7d95
mov ebx, dword [esp + 0x5c]
sub ebx, 2
neg ebx
sbb ebx, ebx
and ebx, 0xfffffff1
add ebx, 0x24
jmp 0x4e7da6
xor ebx, ebx
cmp dword [esp + 0x5c], 2
sete bl
lea ebx, [ebx*8 + 0xd]
lea eax, [ebx + 0x78]
cmp ecx, eax
jl 0x4e7ee2
mov esi, dword [esp + 0x10]
lea eax, [edi + 4]
cdq
push 4
push edx
push eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esi]
push esi
call eax
add esp, 0x14
cmp eax, 4
jne 0x4e7ee8
mov eax, dword [esp + 0x20]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x22]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x23]
shl ecx, 8
or ecx, eax
jne 0x4e7ee8
lea eax, [ebx + edi]
mov dword [esp + 0x40], eax
cdq
mov ecx, eax
mov eax, edx
push 4
push eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x2c]
push ecx
push eax
mov eax, dword [esi]
push esi
mov dword [esp + 0x50], ecx
call eax
add esp, 0x14
cmp eax, 4
jne 0x4e7e51
mov eax, dword [esp + 0x24]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x26]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x27]
shl ecx, 8
or ecx, eax
cmp ecx, 0x58696e67
je 0x4e7e98
push 4
push dword [esp + 0x3c]
lea eax, [esp + 0x30]
push dword [esp + 0x44]
push eax
mov eax, dword [esi]
push esi
call eax
add esp, 0x14
cmp eax, 4
jne 0x4e7ee8
mov eax, dword [esp + 0x28]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x2a]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x2b]
shl ecx, 8
or ecx, eax
cmp ecx, 0x496e666f
jne 0x4e7ee8
mov edi, dword [esp + 0x40]
push 4
lea eax, [edi + 4]
cdq
push edx
push eax
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi]
push esi
call eax
add esp, 0x14
cmp eax, 4
jne 0x4e7ec3
movzx eax, byte [esp + 0x43]
test al, 1
je 0x4e7f49
push 4
lea eax, [edi + 8]
cdq
push edx
push eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esi]
push esi
call eax
add esp, 0x14
cmp eax, 4
je 0x4e7f1d
or ecx, 0xffffffff
jmp 0x4e7f40
mov ebx, dword [esp + 0x10]
jmp 0x4e7eee
mov ecx, dword [esp + 0x58]
mov ebx, esi
mov esi, dword [esp + 0x14]
add edi, ecx
inc dword [esp + 0x2c]
add esi, dword [esp + 0x54]
mov dword [esp + 0x14], esi
cmp edi, dword [esp + 0x34]
jl 0x4e7d00
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x30]
sub eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x2c]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x2e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x2f]
shl ecx, 8
or ecx, eax
imul ecx, dword [esp + 0x54]
mov dword [esp + 0x14], ecx
add ebx, 0x9c
cmp dword [esp + 0x58], ebx
jle 0x4e805f
push 4
lea eax, [edi + 0x78]
cdq
push edx
push eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esi]
push esi
call eax
add esp, 0x14
cmp eax, 4
jne 0x4e805f
mov eax, dword [esp + 0x2c]
movzx ecx, al
shl ecx, 8
movzx eax, ah
or ecx, eax
movzx eax, byte [esp + 0x2e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x2f]
shl ecx, 8
or ecx, eax
cmp ecx, 0x4c414d45
je 0x4e7fae
cmp ecx, 0x4c617663
jne 0x4e805f
cmp dword [esp + 0x48], 3
jne 0x4e8057
push 4
lea eax, [edi + 0x8c]
cdq
push edx
push eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esi]
push esi
call eax
add esp, 0x14
cmp eax, 4
je 0x4e7fff
mov eax, 0xfff
mov dword [esp + 0x18], 0x1210
sub eax, 0x211
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x30]
sub eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [esp + 0x2d]
movzx eax, byte [esp + 0x2e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x2f]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr ecx, 0xc
and ecx, 0xfff
and eax, 0xfff
add ecx, 0x211
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], ecx
cmp eax, 0x211
jbe 0x4e805f
sub eax, 0x211
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x30]
sub eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x18], 0xf1
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x30]
sub eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret