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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x78], eax
lea edx, [esp + 0x6c]
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x85]
mov dword [esp + 0x6c], ebx
push eax
mov edi, edx
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x78], esi
mov dword [esp + 0x80], ecx
mov byte [esp + 0x89], bl
mov dword [esp + 0x84], edx
call fcn.0049b400
mov byte [esp + 0x84], al
mov eax, esi
call fcn.004a3200
mov edi, eax
sub esp, 8
mov eax, esp
lea esi, [esp + 0x30]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.004d3970
cmp edi, ebx
jne 0x4e5c26
cmp dword [esp + 0x14], ebx
je 0x4e5ed7
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x40]
push eax
mov eax, dword [ebp + 8]
call fcn.004e3980
xor edi, edi
cmp dword [esp + 0x30], edi
mov ebx, eax
mov dword [esp + 0xc], ebx
jne 0x4e5c51
cmp dword [esp + 0x34], edi
je 0x4e5cc3
mov esi, dword [esp + 0x28]
push esi
call dword [0x1005f1f8]
test eax, eax
jne 0x4e5cc3
mov edi, dword [esi + 0x10]
test edi, edi
mov eax, dword [esi + 0x14]
jne 0x4e5c6e
test eax, eax
je 0x4e5ca0
mov ecx, dword [0x10075eb4]
mov edx, dword [ecx]
mov ebx, eax
mov eax, dword [edx + 0x14]
push ebx
push edi
call eax
push eax
call fcn.004a3f80
mov ecx, dword [0x10075eb4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push ebx
push edi
call eax
mov ebx, dword [esp + 0xc]
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x18]
push ecx
call fcn.004e4a60
mov eax, dword [esi + 0xc]
mov ecx, dword [0x10075eb4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
add esp, 4
push eax
mov eax, dword [esi + 8]
push eax
call edx
xor edi, edi
mov eax, dword [ebx + 8]
cmp eax, edi
mov edx, dword [ebx + 0xc]
jne 0x4e5cd5
cmp edx, edi
je 0x4e5dee
mov ecx, dword [0x10075eb4]
mov esi, dword [ecx]
push edx
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x3c], edx
call eax
mov ebx, eax
push ebx
mov dword [esp + 0x2c], ebx
call dword [0x1005f200]
xor edi, edi
cmp dword [esp + 0x40], edi
jne 0x4e5d07
cmp dword [esp + 0x44], edi
je 0x4e5d79
mov esi, dword [esp + 0x38]
push esi
call dword [0x1005f1f8]
test eax, eax
jne 0x4e5d79
mov edi, dword [esi + 0x10]
test edi, edi
mov eax, dword [esi + 0x14]
jne 0x4e5d24
test eax, eax
je 0x4e5d56
mov ecx, dword [0x10075eb4]
mov edx, dword [ecx]
mov ebx, eax
mov eax, dword [edx + 0x14]
push ebx
push edi
call eax
push eax
call fcn.004a3f80
mov ecx, dword [0x10075eb4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push ebx
push edi
call eax
mov ebx, dword [esp + 0x28]
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x18]
push ecx
call fcn.004e4a60
mov eax, dword [esi + 0xc]
mov ecx, dword [0x10075eb4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
add esp, 4
push eax
mov eax, dword [esi + 8]
push eax
call edx
xor edi, edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
cmp eax, edi
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x38], edi
jne 0x4e5d96
cmp edx, edi
je 0x4e5e01
mov ecx, dword [0x10075eb4]
mov ebx, dword [ecx]
push edx
mov esi, eax
push eax
mov eax, dword [ebx + 0x14]
mov edi, edx
call eax
push eax
mov dword [esp + 0x5c], eax
call dword [0x1005f200]
mov ebx, dword [esp + 0x28]
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
push edi
push esi
mov eax, edx
push eax
push ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call fcn.0049f9d0
test al, al
jne 0x4e5e09
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
push edi
push esi
call fcn.0049f9d0
test al, al
jne 0x4e5e09
mov bl, 1
jmp 0x4e5e0b
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], edi
mov ebx, edi
jmp 0x4e5cf9
xor esi, esi
mov dword [esp + 0x58], esi
jmp 0x4e5db8
xor bl, bl
test esi, esi
jne 0x4e5e13
test edi, edi
je 0x4e5e1d
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004a3f80
test bl, bl
jne 0x4e5f44
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.004e4420
xor ebx, ebx
cmp dword [esp + 0x50], ebx
jne 0x4e5e46
cmp dword [esp + 0x54], ebx
je 0x4e5eb4
mov esi, dword [esp + 0x48]
push esi
call dword [0x1005f1f8]
test eax, eax
jne 0x4e5eb4
mov edi, dword [esi + 0x10]
cmp edi, ebx
mov eax, dword [esi + 0x14]
jne 0x4e5e63
cmp eax, ebx
je 0x4e5e93
mov ecx, dword [0x10075eb4]
mov edx, dword [ecx]
mov ebx, eax
mov eax, dword [edx + 0x14]
push ebx
push edi
call eax
push eax
call fcn.004a3f80
mov ecx, dword [0x10075eb4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push ebx
push edi
call eax
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
xor ebx, ebx
lea ecx, [esi + 0x18]
push ecx
call fcn.004e4a60
mov eax, dword [esi + 0xc]
mov ecx, dword [0x10075eb4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
add esp, 4
push eax
mov eax, dword [esi + 8]
push eax
call edx
cmp dword [esp + 0x10], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x48], ebx
jne 0x4e5c26
cmp dword [esp + 0x14], 0
jne 0x4e5c26
xor ebx, ebx
lea edi, [esp + 0x28]
call fcn.004e46a0
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov edx, dword [esp + 0x34]
jne 0x4e5ef0
cmp edx, ebx
je 0x4e5eff
mov ecx, dword [0x10075eb4]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0x18]
push eax
call edx
cmp byte [esp + 0x85], 0
je 0x4e5f39
mov esi, dword [esp + 0x80]
mov eax, dword [esi + 8]
push ebx
push eax
call dword [0x1005f124]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea eax, [esi + 0xc]
jle 0x4e5f39
push eax
call dword [0x1005f1f8]
mov edx, dword [esi + 0x10]
push ebx
push 1
push edx
call dword [0x1005f144]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.004e6460
lea edi, [esp + 0x28]
call fcn.004e46a0
mov eax, dword [esp + 0x30]
test eax, eax
mov edx, dword [esp + 0x34]
jne 0x4e5f70
test edx, edx
je 0x4e5f7f
mov ecx, dword [0x10075eb4]
mov esi, dword [ecx]
push edx
push eax
mov eax, dword [esi + 0x18]
call eax
cmp byte [esp + 0x85], 0
je 0x4e5fbb
mov esi, dword [esp + 0x80]
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [0x1005f124]
mov edx, dword [esi + 0xc]
test edx, edx
lea eax, [esi + 0xc]
jle 0x4e5fbb
push eax
call dword [0x1005f1f8]
mov eax, dword [esi + 0x10]
push 0
push 1
push eax
call dword [0x1005f144]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8