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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
mov esi, dword [esp + 0x7c]
test edi, edi
setle dl
test ecx, ecx
setle al
or dl, al
jne 0x4e5504
test esi, esi
je 0x4e5504
test ebx, ebx
je 0x4e5487
mov eax, dword [ebx + 8]
test eax, eax
je 0x4e5480
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
and edx, 0xfffffffe
and eax, 0xfffffffe
js 0x4e5504
test edx, edx
js 0x4e5504
mov ebp, dword [ebx + 0x14]
mov dword [esp + 0x20], ebp
cmp dword [esp + 0x20], 0
mov ebp, dword [ebx + 0x18]
jle 0x4e5504
test ebp, ebp
jle 0x4e5504
add eax, dword [esp + 0x20]
cmp eax, edi
jg 0x4e5504
add edx, ebp
cmp edx, ecx
jg 0x4e5504
mov edi, dword [esp + 0x20]
mov ecx, ebp
nop
mov ebp, dword [ebx + 0x1c]
test ebp, ebp
jne 0x4e54c0
mov ebp, dword [esi]
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
cmp ebp, 0xc
ja 0x4e5504
mov edx, dword [esi + 0xc]
test edx, edx
jle 0x4e5511
mov eax, esi
call fcn.004e50c0
test eax, eax
jne 0x4e5509
test ebx, ebx
je 0x4e5509
mov edx, dword [ebx + 0x30]
test edx, edx
je 0x4e5509
mov dword [esp], esi
call fcn.004e5360
jmp 0x4e5509
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 4], ecx
mov dword [esp], edi
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
call fcn.004e4ee0
test eax, eax
je 0x4e5504
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
test edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
jg 0x4e5611
mov eax, 2
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x50]
test eax, eax
jne 0x4e549b
movzx eax, byte [ebp + 0x74ad68]
mov dword [esp + 0x20], eax
imul edi
cmp edx, 0
ja 0x4e5504
mov eax, dword [esp + 0x20]
imul eax, edi
mov dword [esp + 0x20], eax
imul ecx
cmp ebp, 0xa
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jbe 0x4e5620
lea eax, [edi + 1]
mov edx, eax
lea eax, [ecx + 1]
sar edx, 1
sar eax, 1
mov dword [esp + 0x24], edx
imul edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
shld edx, eax, 1
add eax, eax
add eax, dword [esp + 0x18]
adc edx, dword [esp + 0x1c]
cmp ebp, 0xc
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
je 0x4e5663
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0050ce10
test eax, eax
je 0x4e5659
mov dword [esi + 0x50], eax
mov dword [esp + 0x30], 0
xor edi, edi
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov dword [esp + 0x20], edx
mov dword [esi + 0x30], edx
lea edx, [eax + edx]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x24]
mov dword [esi + 0x24], edx
mov edx, dword [esp + 0x28]
add ecx, edx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esp + 0x20], ecx
add ecx, eax
cmp ebp, 0xc
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x28], ecx
jne 0x4e5602
add edx, dword [esp + 0x20]
add eax, edx
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x3c], eax
jmp 0x4e549b
test ecx, ecx
jle 0x4e5504
mov ebp, dword [esi]
jmp 0x4e548f
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0050ce10
test eax, eax
je 0x4e5659
mov dword [esi + 0x50], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x18], eax
jmp 0x4e549b
mov eax, 1
jmp 0x4e5509
mov eax, ecx
mov dword [esp + 8], 1
imul edi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x38]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x34]
adc edx, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0050ce10
test eax, eax
je 0x4e5659
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x50], eax
mov dword [esp + 0x30], ecx
jmp 0x4e55b2