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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x3c]
cmp eax, dword [ecx + 8]
jbe 0x4e5d3b
sub esp, 0xbc
mov eax, dword [0x5c2ee4]
mov dword [esp + 0x38], eax
cmp eax, 4
jl 0x4e5cca
mov ecx, dword [0x5c2ee4]
mov edx, dword [0x5c2ee0]
lea ebx, [eax - 1]
cmp ebx, ecx
jae 0x4e5d34
lea ecx, [edx + eax*8 - 8]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.0045a3c0
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x4e59e3
je 0x4e591c
mov edx, dword [edx + 4]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov ebx, dword [0x5c2ee0]
mov ebp, dword [0x5c2ee4]
cmp ebp, 3
jbe 0x4e5d2d
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], edx
lea eax, [ebx + 0x18]
mov dword [esp + 4], eax
lea eax, [0x500ac0]
mov dword [esp], eax
call fcn.0040aa00
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x8c], eax
lea eax, [0x52ac31]
mov dword [esp], eax
mov dword [esp + 4], 0x38
lea eax, [esp + 0x80]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004999e0
mov dword [esp], 1
call fcn.00482400
mov eax, dword [0x5c2ee0]
mov ecx, dword [0x5c2ee4]
mov edx, dword [esp + 0x38]
lea ebx, [edx - 2]
cmp ebx, ecx
jae 0x4e5d26
mov dword [esp + 0x34], ebx
lea eax, [eax + edx*8 - 0x10]
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov dword [esp], ecx
mov dword [esp + 4], eax
lea ebx, [0x51fdf4]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 4
call fcn.004a51d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x4e5aee
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x64], ebx
je 0x4e5a5a
mov eax, dword [eax + 4]
mov dword [esp + 0x50], eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea ecx, [0x500ac0]
mov dword [esp], ecx
lea ecx, [esp + 0x60]
mov dword [esp + 4], ecx
call fcn.0040aa00
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x7c], eax
lea eax, [0x52992a]
mov dword [esp], eax
mov dword [esp + 4], 0x2b
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004999e0
mov dword [esp], 1
call fcn.00482400
mov eax, dword [0x5c2ee8]
mov ecx, dword [0x5c2ee0]
mov edx, dword [esp + 0x34]
cmp edx, 1
jb 0x4e5d1f
cmp edx, eax
ja 0x4e5d1f
dec eax
neg eax
sar eax, 0x1f
and eax, 8
add eax, ecx
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffffd
mov dword [esp + 0x38], ecx
xor edx, edx
jmp 0x4e5b3c
mov ebx, dword [esp + 0x34]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
cmp edx, ecx
jge 0x4e5cc3
mov dword [esp + 0x34], edx
lea ecx, [eax + edx*8]
mov ebx, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.004a59d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
test ecx, ecx
jne 0x4e5b2d
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], edx
xor ecx, ecx
jmp 0x4e5b87
mov ebx, dword [esp + 0x30]
lea ecx, [ebx + 1]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
cmp ecx, eax
jge 0x4e5b2d
mov dword [esp + 0x30], ecx
lea eax, [edx + ecx*8]
mov ebx, dword [eax + 4]
mov dword [esp + 0x28], ebx
mov eax, dword [eax]
mov dword [esp + 0x44], eax
lea ebp, [0x511aa0]
mov dword [esp], ebp
call fcn.0040d050
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
lea edi, [esp + 0x90]
xor eax, eax
call fcn.0044a115
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x98], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x9c], edx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0xa0], ebx
mov ebp, dword [esp + 0x44]
mov dword [esp + 0xb4], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0xb8], ebp
mov ebp, dword [0x5d3b70]
test ebp, ebp
jne 0x4e5c9d
mov edi, dword [esp + 0x54]
lea esi, [esp + 0x90]
call fcn.0044a5c2
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.004e4c80
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test eax, eax
je 0x4e5c80
je 0x4e5c35
mov eax, dword [eax + 4]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
lea eax, [0x5271e5]
mov dword [esp], eax
mov dword [esp + 4], 0x1e
lea ecx, [esp + 0x58]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004e4bf0
jmp 0x4e5b78
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.004e53b0
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.004e5660
jmp 0x4e5b78
lea eax, [0x511aa0]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
lea ecx, [esp + 0x90]
mov dword [esp + 8], ecx
call fcn.0040d9d0
jmp 0x4e5c18
add esp, 0xbc
ret
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
lea eax, [0x500ac0]
mov dword [esp + 0x68], eax
lea ecx, [0x53ab68]
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x68]
mov dword [esp], ecx
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00499d50
mov dword [esp], 1
call fcn.00482400
mov eax, dword [esp + 0x38]
jmp 0x4e58d3
call fcn.004243c0
ud2
call fcn.00424360
ud2
call fcn.00424360
ud2
call fcn.00424360
ud2
call fcn.004486e0
jmp fcn.004e58a0