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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x28]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [esp + 0x14], ebx
je 0x4e88d7
mov ecx, dword [0x5debe0]
push esi
push 0x4e9310
push 0x61
push eax
lea edi, [ecx + 0x404]
call dword [ecx + 0x558]
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call dword [edi]
add esp, 0x14
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x10], ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4e8914
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
push 0
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [ebp + 8]
push edx
push edi
push ebx
push eax
push esi
push ecx
call fcn.0052ecb0
add esp, 0x20
test eax, eax
je 0x4e8939
mov dword [esp + 0x10], 1
jmp 0x4e88e1
mov edx, dword [ebp + 8]
mov eax, dword [0x5debe0]
push edx
call dword [eax + 0x2a0]
mov edi, dword [eax]
lea ecx, [esp + 0x64]
inc edi
push ecx
mov dword [esp + 0x1c], eax
mov dword [eax], edi
call fcn.0052ef40
add esp, 8
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4e898c
mov edx, dword [ebp + 8]
push 1
push 0
push eax
mov eax, dword [0x5debe0]
push edx
call dword [eax + 0x314]
add esp, 0x10
test eax, eax
je 0x4e898c
mov edx, dword [0x5debe0]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
call dword [edx + 0x94]
add esp, 0xc
test eax, eax
jne 0x4e898c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push esi
call fcn.004e9270
fstp qword [esi + 0x20]
add esp, 0xc
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
push edx
push eax
push esi
call fcn.004e9270
fstp qword [esi + 0x30]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x38]
push ecx
push edx
push esi
call fcn.004e9270
fstp qword [esi + 0x38]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
push eax
push ecx
push esi
call fcn.004e9270
fcom qword [0x5940e0]
add esp, 0x24
fst qword [esi + 0x40]
fnstsw ax
test ah, 1
je 0x4e89d6
mov ecx, 1
jmp 0x4e89d8
xor ecx, ecx
fld qword [esi + 0x38]
fsub qword [esi + 0x30]
fcomp qword [0x5940e0]
fnstsw ax
test ah, 1
je 0x4e89f2
mov eax, 1
jmp 0x4e89f4
xor eax, eax
xor ecx, eax
je 0x4e89ff
fchs
fstp qword [esi + 0x40]
jmp 0x4e8a01
fstp st(0)
push esi
call fcn.004e8cb0
mov edi, dword [esi + 0x74]
add esp, 4
test edi, edi
je 0x4e8a1d
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x4e8a1f
xor ecx, ecx
mov edx, dword [esi + 0x84]
mov eax, dword [esi]
push edx
push eax
mov dword [esi + 0x78], ecx
call fcn.00530da0
mov eax, dword [esi + 0xac]
add esp, 8
test eax, eax
jge 0x4e8a48
mov dword [esi + 0xac], 0
mov ecx, dword [esi + 0x80]
mov edx, dword [esi + 0xac]
mov ebx, dword [esp + 0x10]
add ecx, edx
test ebx, ebx
mov dword [esi + 0xb8], ecx
jne 0x4e8a71
lea edx, [esp + 0x60]
push edx
call fcn.0052f110
add esp, 4
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
push 1
push 0
push eax
push ecx
push esi
call fcn.004e9430
mov eax, dword [esi + 0x28]
add esp, 0x14
test eax, eax
je 0x4e8b5d
mov edx, dword [ebp + 8]
push 1
push 0
push eax
mov eax, dword [0x5debe0]
push edx
call dword [eax + 0x314]
add esp, 0x10
test eax, eax
je 0x4e8b2a
mov edx, dword [0x5debe0]
lea ecx, [esp + 0x18]
push ecx
push eax
push 0
call dword [edx + 0x94]
add esp, 0xc
test eax, eax
jne 0x4e8b2a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edi, [esi + 0x54]
lea edx, [esp + 0x4c]
push edi
push edx
call fcn.005827d9
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
push eax
push ecx
lea edx, [esp + 0x40]
push edi
push edx
call fcn.005827d9
add esp, 0x20
lea edi, [esp + 0x28]
lea eax, [esp + 0x44]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x4e8b21
test cl, cl
je 0x4e8b1d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x4e8b21
add eax, 2
add edi, 2
test cl, cl
jne 0x4e8afd
xor eax, eax
jmp 0x4e8b26
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4e8b33
push esi
call fcn.004e9510
add esp, 4
mov ecx, dword [esi + 0x28]
mov eax, dword [0x5debe0]
push esi
push 0x4e9310
push 0x61
push ecx
lea edi, [eax + 0x3e4]
call dword [eax + 0x558]
mov edx, dword [ebp + 8]
add esp, 4
push eax
push edx
call dword [edi]
add esp, 0x14
push esi
call fcn.004e8bc0
add esp, 4
test ebx, ebx
je 0x4e8ba9
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [0x5debe0]
push esi
push eax
call dword [ecx + 0x3b4]
mov ecx, dword [esi]
add esp, 8
dec ecx
mov eax, ecx
test eax, eax
mov dword [esi], ecx
jg 0x4e8b9d
mov edx, dword [0x5debe0]
push esi
call dword [edx + 0x80]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret