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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x128
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x140]
mov dword [esp + 0x50], eax
cmp dword [eax], 0
jne 0x4e0725
mov eax, dword [esp + 0x50]
mov ecx, eax
add ecx, 4
mov dword [esp + 0x8c], ecx
test byte [eax + 0xe], 1
jne 0x4e07e6
jmp 0x4e075d
mov ecx, dword [esp + 0x50]
mov eax, ecx
add eax, 8
mov dword [esp + 0x44], eax
mov dword [esp + 0xe0], eax
mov eax, dword [ecx + 0x1c]
mov edx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x34]
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], ecx
cmp eax, ecx
je 0x4e0a11
jmp 0x4e09a0
mov eax, dword [esp + 0x50]
mov cl, byte [eax + 0xc]
mov byte [esp + 0x37], cl
and cl, 1
mov byte [esp + 0x93], cl
mov cl, byte [eax + 0xc]
xor cl, 0xff
and cl, 1
mov byte [eax + 0xc], cl
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov dword [esp + 0x94], edx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x3c], ecx
mov eax, dword [eax + 0x34]
mov dword [esp + 0x40], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], eax
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00497e90
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x78]
mov eax, 1
xor ecx, ecx
cmp edx, 0
cmove eax, ecx
cmp eax, 0
je 0x4e07f5
jmp 0x4e081a
mov eax, dword [esp + 0x48]
mov dword [eax], 2
jmp 0x4e0991
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
mov eax, esp
mov dword [eax + 0xc], edx
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ecx
mov dword [eax + 0x10], 0x601840
call fcn.005f7030
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], ecx
mov eax, ecx
add eax, edx
mov dword [esp + 0xcc], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
mov dword [esp + 0xd0], eax
lea eax, [esp + 0x58]
mov dword [esp], eax
call fcn.00559530
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
cmp dword [esp + 0x80], 0
jne 0x4e08ad
mov al, byte [esp + 0x37]
test al, 1
jne 0x4e08d5
jmp 0x4e08c1
mov eax, dword [esp + 0x84]
mov dword [esp + 0x30], eax
mov dword [esp + 0xd4], eax
jmp 0x4e08ee
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
mov byte [ecx + 0xe], 1
mov dword [eax], 2
jmp 0x4e08e9
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax], 0
jmp 0x4e0991
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004814a0
mov al, byte [esp + 0x37]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x54], ecx
test al, 1
jne 0x4e08d5
mov eax, dword [esp + 0x54]
mov dword [esp + 0x2c], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
cmp eax, 0x80
jb 0x4e0934
mov eax, dword [esp + 0x2c]
cmp eax, 0x800
jb 0x4e094b
jmp 0x4e093e
mov dword [esp + 0x60], 1
jmp 0x4e0967
mov eax, dword [esp + 0x2c]
cmp eax, 0x10000
jb 0x4e095f
jmp 0x4e0955
mov dword [esp + 0x60], 2
jmp 0x4e0967
mov dword [esp + 0x60], 4
jmp 0x4e0967
mov dword [esp + 0x60], 3
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x50]
mov esi, dword [ecx + 4]
add esi, dword [esp + 0x60]
mov dword [ecx + 4], esi
mov ecx, dword [ecx + 4]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax], 1
jmp 0x4e08e9
mov eax, dword [esp + 0x4c]
add esp, 0x128
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x50]
cmp dword [edx + 0x1c], 0xffffffff
sete cl
mov ch, cl
and ch, 1
mov byte [esp + 0xef], ch
mov esi, dword [eax + 0x30]
mov edi, dword [eax + 0x34]
mov dword [esp + 0xf0], esi
mov dword [esp + 0xf4], edi
mov ebx, dword [eax + 0x38]
mov ebp, dword [eax + 0x3c]
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], ebp
mov eax, esp
mov dword [eax + 0x14], ebp
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], edi
mov dword [eax + 8], esi
mov dword [eax + 4], edx
lea edx, [esp + 0x64]
mov dword [eax], edx
movzx ecx, cl
and ecx, 1
mov dword [eax + 0x18], ecx
call fcn.0054ea10
cmp dword [esp + 0x64], 1
je 0x4e0a20
jmp 0x4e0a39
mov eax, dword [esp + 0x48]
mov dword [eax], 2
jmp 0x4e0991
mov eax, dword [esp + 0x68]
mov dword [esp + 0x28], eax
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
jmp 0x4e0a56
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x64]
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
jmp 0x4e0991
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x34]
mov dword [esp + 0x20], eax
mov dword [esp + 0x104], ecx
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10c], eax
cmp eax, 0
jne 0x4e0a8c
jmp 0x4e0aac
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x110], edx
mov dword [esp + 0x114], ecx
cmp eax, ecx
jb 0x4e0b0c
jmp 0x4e0af7
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x120], ecx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x124], eax
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00560e40
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 0x14], esi
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax], 1
jmp 0x4e0991
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
sete al
and al, 1
mov byte [esp + 0x77], al
jmp 0x4e0b30
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x118], eax
mov al, byte [eax + ecx]
mov byte [esp + 0x11f], al
cmp al, 0xc0
setge al
and al, 1
mov byte [esp + 0x77], al
test byte [esp + 0x77], 1
jne 0x4e0aac
mov eax, dword [esp + 0x70]
add eax, 1
mov dword [esp + 0x70], eax
jmp 0x4e0a56