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

Disassembly:
mov ecx, dword [0x6cfe90]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x34]
cmp eax, dword [ecx + 8]
jbe 0x4e5d9a
sub esp, 0xb4
mov eax, 0
mov dword [esp + 0xb0], eax
mov byte [esp + 0x27], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
lea eax, [0x57f4e1]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call fcn.004b10e0
movzx eax, byte [esp + 0x10]
mov byte [esp + 0x26], al
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
lea ecx, [0x4e5db0]
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0xb8]
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0xc4]
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0xb0], ecx
mov byte [esp + 0x27], 1
cmp dword [esp + 0xbc], 2
jge 0x4e5955
xor ecx, ecx
jmp 0x4e5982
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
lea eax, [0x57ba74]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
call fcn.004030e0
movzx eax, byte [esp + 0xc]
mov ecx, eax
movzx eax, byte [esp + 0x26]
test cl, cl
je 0x4e598d
mov ecx, 1
jmp 0x4e59c8
cmp dword [esp + 0xbc], 2
jge 0x4e599b
xor ecx, ecx
jmp 0x4e59c8
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
lea eax, [0x57ba76]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
call fcn.004030e0
movzx eax, byte [esp + 0xc]
mov ecx, eax
movzx eax, byte [esp + 0x26]
test cl, cl
je 0x4e5a02
mov ecx, dword [esp + 0xbc]
cmp ecx, 2
jb 0x4e5d83
lea ebx, [ecx - 2]
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ebx, 2
mov esi, dword [esp + 0xb8]
add ebx, esi
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebp
jmp 0x4e5a75
cmp dword [esp + 0xbc], 3
jge 0x4e5a10
xor ecx, ecx
jmp 0x4e5a3d
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
lea eax, [0x57bb3c]
mov dword [esp + 4], eax
mov dword [esp + 8], 3
call fcn.004030e0
movzx eax, byte [esp + 0xc]
mov ecx, eax
movzx eax, byte [esp + 0x26]
test cl, cl
je 0x4e5a75
mov ecx, dword [esp + 0xbc]
cmp ecx, 3
jb 0x4e5d79
lea ebx, [ecx - 3]
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ebx, 3
mov esi, dword [esp + 0xb8]
add ebx, esi
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebp
mov edx, dword [esp + 0xbc]
cmp edx, 6
jge 0x4e5a85
mov ecx, edx
jmp 0x4e5a8c
mov ecx, edx
mov edx, 6
cmp edx, ecx
ja 0x4e5d6e
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], 0
call fcn.004bf220
mov eax, dword [esp + 0xc]
test eax, eax
jge 0x4e5c49
call fcn.0040d4a0
mov eax, dword [esp]
mov dword [esp + 0x68], eax
call fcn.0040d4a0
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x28], eax
mov ecx, dword [esp]
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x54], edx
lea ebx, [0x553a40]
mov dword [esp], ebx
mov dword [esp + 4], 0xa
call fcn.00405870
mov eax, dword [esp + 8]
mov dword [esp + 0x60], eax
lea ecx, [0x55d6e0]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0xa
call fcn.0044b5b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x5c], eax
lea ecx, [0x5713a0]
mov dword [esp], ecx
call fcn.0040ca70
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [0x6cff38]
test ecx, ecx
jne 0x4e5b5e
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
jmp 0x4e5b77
call fcn.00464ad0
mov ecx, dword [esp + 0x54]
mov dword [edi], ecx
mov edx, dword [esp + 0x60]
mov dword [edi + 4], edx
mov ebx, dword [esp + 0x5c]
mov dword [edi + 8], ebx
mov dword [esp + 0x30], eax
mov dword [eax], ecx
lea ecx, [0x58af08]
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 0xa
mov dword [eax + 0x38], ebx
mov dword [eax + 0x10], 1
movzx ecx, byte [esp + 0x26]
mov byte [eax + 0x1c], cl
call fcn.0040d4a0
mov eax, dword [esp]
mov dword [esp + 0x58], eax
lea ecx, [0x56ea40]
mov dword [esp], ecx
call fcn.0040ca70
mov eax, dword [0x6cff38]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x4e5bdf
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x30]
jmp 0x4e5bf8
call fcn.00464ad0
mov eax, dword [esp + 0x68]
mov dword [edi], eax
mov edx, dword [esp + 0x64]
mov dword [edi + 4], edx
mov ebx, dword [esp + 0x30]
mov dword [edi + 8], ebx
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x38], edx
mov dword [ecx], ebx
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
lea eax, [0x6cfd60]
mov dword [ecx + 0x28], eax
mov eax, dword [0x6cff38]
test eax, eax
jne 0x4e5c27
mov eax, dword [esp + 0x58]
jmp 0x4e5c32
call fcn.00464ab0
mov eax, dword [esp + 0x58]
mov dword [edi], eax
mov dword [ecx + 0x3c], eax
movzx eax, byte [esp + 0x26]
mov byte [ecx + 0x24], al
mov dword [esp + 0xc0], ecx
jmp 0x4e5d1e
mov dword [esp + 0x2c], eax
lea edi, [esp + 0x78]
xor eax, eax
call fcn.00464ca2
lea ecx, [0x589ad4]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], 0x50
mov dword [esp + 0x88], 1
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], 1
mov dword [esp + 0x9c], 1
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], edx
lea ecx, [0x570bc0]
mov dword [esp], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 4], ecx
call fcn.0040a140
mov ecx, dword [esp + 8]
mov dword [esp + 0xc0], 0
lea edx, [0x5b64b4]
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xb0]
mov ecx, dword [edx]
call ecx
add esp, 0xb4
ret
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
lea edi, [esp + 4]
lea esi, [esp + 0x34]
call fcn.00465170
call fcn.004e6450
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
call fcn.004e60c0
lea edi, [esp + 0x34]
lea esi, [esp + 4]
call fcn.00465170
cmp dword [esp + 0x34], 2
jne 0x4e5d02
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xb0]
mov eax, dword [edx]
call eax
add esp, 0xb4
ret
mov eax, ecx
mov ecx, edx
mov edx, eax
call fcn.00464b50
mov eax, 3
call fcn.00464b90
mov eax, 2
call fcn.00464b90
nop
call fcn.00435c60
add esp, 0xb4
ret
call fcn.004636b0
jmp fcn.004e5890