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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x505ca0
sub esp, 0x6c
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
nop
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 4]
nop
lea ebx, [edx - 1]
test ebx, ebx
jl 0x505c63
mov ecx, dword [ecx + edx*4 - 4]
nop
nop
cmp ecx, 0x10000
jb 0x505c5c
shr ecx, 0x10
mov edx, 0x10
cmp ecx, 0x100
jb 0x50592a
shr ecx, 8
add edx, 8
cmp ecx, 0x100
jae 0x505c99
shl ebx, 5
lea ebp, [0x869c00]
movzx ecx, byte [ecx + ebp]
add ecx, edx
add ecx, ebx
lea edx, [ecx + 7]
sar edx, 0x1f
shr edx, 0x1d
lea edx, [edx + ecx + 7]
sar edx, 3
mov ebx, dword [esp + 0x88]
cmp ebx, edx
jne 0x505c3e
mov dword [esp + 0x30], ecx
mov byte [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
nop
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 0x84]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x14], eax
call fcn.004e3b30
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov byte [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
call fcn.00506400
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
nop
mov ecx, dword [eax + 8]
lea edx, [0x640f20]
mov dword [esp], edx
shl ecx, 2
mov dword [esp + 0x38], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00438de0
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.004e3a80
mov eax, dword [esp + 0x30]
lea ecx, [eax + 6]
sar ecx, 0x1f
shr ecx, 0x1d
lea ecx, [ecx + eax + 6]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
cmp edx, ebx
ja 0x505c92
sar ecx, 3
sub ebx, edx
cmp ecx, ebx
jl 0x505c20
mov dword [esp + 0x34], ecx
lea eax, [0x640f20]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00438de0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
nop
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 8]
lea ebx, [0x640f20]
mov dword [esp], ebx
shl edx, 2
mov dword [esp + 0x3c], edx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00438de0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 4]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.004e3a80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
ja 0x505c8b
mov edx, dword [esp + 0x48]
mov dword [esp], edx
mov ebx, dword [esp + 0x34]
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
sub ecx, eax
mov ebp, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x44]
add eax, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call fcn.00504a40
mov eax, dword [esp + 0x90]
cmp eax, 0xffffffff
jne 0x505c10
nop
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x505c71
cmp eax, 0x14
jae 0x505c71
mov ecx, dword [0x88fa00]
lea edx, [0x88fa00]
cmp dword [edx + 4], eax
jbe 0x505c6a
movzx ecx, byte [ecx + eax]
mov dword [esp + 0x90], ecx
mov dword [esp], eax
call fcn.004d49c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x78]
mov dword [esp], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
dec edx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
call fcn.00504e90
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
add esp, 0x6c
ret
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x90]
jmp 0x505b90
mov eax, dword [0x894884]
mov ecx, dword [0x894880]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x6c
ret
mov eax, dword [0x894884]
mov ecx, dword [0x894880]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x6c
ret
xor edx, edx
jmp 0x50591c
xor ecx, ecx
jmp 0x505947
call fcn.00427150
ud2
lea eax, [0x640d20]
mov dword [esp], eax
lea eax, [0x6e0fa8]
mov dword [esp + 4], eax
call fcn.00427f10
ud2
call fcn.00427250
ud2
call fcn.00427250
ud2
call fcn.00427150
ud2
call fcn.0044b940
jmp fcn.005058d0