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

Disassembly:
mov ecx, dword [0x6d0e30]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x34]
cmp eax, dword [ecx + 8]
jbe 0x4e5dea
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, [0x57f5a1]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call fcn.004b1120
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, [0x4e5e00]
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 0x4e59a5
xor ecx, ecx
jmp 0x4e59d2
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
lea eax, [0x57bb34]
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 0x4e59dd
mov ecx, 1
jmp 0x4e5a18
cmp dword [esp + 0xbc], 2
jge 0x4e59eb
xor ecx, ecx
jmp 0x4e5a18
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
lea eax, [0x57bb36]
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 0x4e5a52
mov ecx, dword [esp + 0xbc]
cmp ecx, 2
jb 0x4e5dd3
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 0x4e5ac5
cmp dword [esp + 0xbc], 3
jge 0x4e5a60
xor ecx, ecx
jmp 0x4e5a8d
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
lea eax, [0x57bbfc]
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 0x4e5ac5
mov ecx, dword [esp + 0xbc]
cmp ecx, 3
jb 0x4e5dc9
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 0x4e5ad5
mov ecx, edx
jmp 0x4e5adc
mov ecx, edx
mov edx, 6
cmp edx, ecx
ja 0x4e5dbe
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], 0
call fcn.004bf260
mov eax, dword [esp + 0xc]
test eax, eax
jge 0x4e5c99
call fcn.0040d4d0
mov eax, dword [esp]
mov dword [esp + 0x68], eax
call fcn.0040d4d0
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, [0x553aa0]
mov dword [esp], ebx
mov dword [esp + 4], 0xa
call fcn.004058a0
mov eax, dword [esp + 8]
mov dword [esp + 0x60], eax
lea ecx, [0x55d720]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0xa
call fcn.0044b5f0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x5c], eax
lea ecx, [0x571440]
mov dword [esp], ecx
call fcn.0040caa0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [0x6d0ed8]
test ecx, ecx
jne 0x4e5bae
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
jmp 0x4e5bc7
call fcn.00464b10
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, [0x58b00c]
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.0040d4d0
mov eax, dword [esp]
mov dword [esp + 0x58], eax
lea ecx, [0x56eae0]
mov dword [esp], ecx
call fcn.0040caa0
mov eax, dword [0x6d0ed8]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x4e5c2f
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x30]
jmp 0x4e5c48
call fcn.00464b10
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, [0x6d0d00]
mov dword [ecx + 0x28], eax
mov eax, dword [0x6d0ed8]
test eax, eax
jne 0x4e5c77
mov eax, dword [esp + 0x58]
jmp 0x4e5c82
call fcn.00464af0
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 0x4e5d6e
mov dword [esp + 0x2c], eax
lea edi, [esp + 0x78]
xor eax, eax
call fcn.00464ce2
lea ecx, [0x589bd6]
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, [0x570c60]
mov dword [esp], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 4], ecx
call fcn.0040a170
mov ecx, dword [esp + 8]
mov dword [esp + 0xc0], 0
lea edx, [0x5b6574]
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.004651b0
call fcn.004e64a0
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
call fcn.004e6110
lea edi, [esp + 0x34]
lea esi, [esp + 4]
call fcn.004651b0
cmp dword [esp + 0x34], 2
jne 0x4e5d52
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.00464b90
mov eax, 3
call fcn.00464bd0
mov eax, 2
call fcn.00464bd0
nop
call fcn.00435ca0
add esp, 0xb4
ret
call fcn.004636f0
jmp fcn.004e58e0