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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x506017
sub esp, 0x84
mov eax, dword [esp + 0x9c]
test eax, eax
jne 0x505f3d
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x98]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x9c]
test ebx, ebx
jne 0x505f27
test edx, edx
je 0x505e0a
mov ebp, 0xa
mov esi, 0x2e
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x34], ebp
mov ebp, 0xa
mov dword [esp + 0x58], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x30], esi
mov byte [esp + 0x2f], al
mov dword [esp + 0x50], ebp
mov dword [esp], ebp
call fcn.00505830
mov eax, dword [esp + 4]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x94]
mov ebp, dword [esp + 0x98]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
xor eax, eax
mov byte [esp + 0x2e], al
mov eax, dword [esp + 0x54]
mov dword [esp + 0x40], eax
mov dword [esp + 0x64], ecx
xor ecx, ecx
mov dword [esp + 0x3c], ecx
xor ecx, ecx
mov dword [esp + 0x8c], ecx
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov ecx, 0xffffffff
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
jmp 0x505a5b
mov dword [esp + 0x78], edi
mov dword [esp + 0x90], esi
mov byte [esp + 0x2e], al
mov byte [esp + 0xa0], cl
mov edx, dword [ebx + 0x10]
mov dword [esp], ebp
call edx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0x54]
mov ebx, ebp
mov ebp, esi
mov dword [esp + 0x58], edx
mov byte [esp + 0x2f], al
mov byte [esp + 0x5c], al
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], eax
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x74], edi
mov dword [esp + 0x90], esi
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x505bb1
movzx eax, byte [esp + 0x2f]
cmp al, 0x2e
jne 0x505dfd
movzx ecx, byte [esp + 0xa0]
test cl, cl
je 0x505abb
mov eax, dword [esp + 0x30]
cmp eax, 0x5f
sete al
movzx ecx, byte [esp + 0x2e]
or eax, ecx
xor ecx, ecx
mov ecx, 0x2e
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], ecx
xor ecx, ecx
jmp 0x5059e1
cmp al, 0x5f
jne 0x505af0
test edx, edx
jne 0x505af0
mov eax, dword [esp + 0x30]
cmp eax, 0x30
setne al
movzx edx, byte [esp + 0x2e]
or eax, edx
mov edx, 0x5f
mov edx, dword [esp + 0x40]
mov dword [esp + 0x4c], edx
mov edx, 0x5f
mov dword [esp + 0x30], edx
jmp 0x5059e1
cmp al, 0x30
jb 0x505db1
cmp al, 0x39
ja 0x505db1
add eax, 0xffffffd0
movzx eax, al
mov edx, dword [esp + 0x50]
cmp eax, edx
jae 0x505ba9
mov ebp, dword [esp + 0x44]
imul ebp, edx
add eax, ebp
mov ebp, dword [esp + 0x3c]
inc ebp
mov edx, dword [esp + 0x38]
cmp edx, ebp
je 0x505b4e
mov edx, dword [esp + 0x40]
inc edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], eax
mov ebp, dword [esp + 0x98]
movzx eax, byte [esp + 0x2e]
mov edx, 0x30
jmp 0x505ae7
mov dword [esp], edi
mov ecx, dword [esp + 0x8c]
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
call fcn.004fefc0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
movzx ecx, byte [esp + 0xa0]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x94]
xor ebp, ebp
mov dword [esp + 0x8c], eax
xor eax, eax
jmp 0x505b2a
mov eax, dword [ebx + 0x14]
mov dword [esp], ebp
call eax
mov eax, dword [esp + 0x58]
cmp dword [0x8ad9e8], eax
je 0x505d78
mov ecx, dword [esp + 0x78]
test eax, eax
je 0x505d45
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x505d3a
mov ebx, dword [esp + 0x34]
cmp ebx, 0x30
je 0x505ceb
mov eax, dword [0x8ada3c]
mov ecx, dword [0x8ada38]
mov dword [esp + 0x78], eax
mov dword [esp + 0x58], ecx
mov ebx, dword [esp + 0x3c]
test ebx, ebx
jg 0x505c8c
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x8c]
mov esi, dword [esp + 0x74]
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.004fe7c0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x54]
test ebx, ebx
jl 0x505c86
mov ebp, dword [esp + 0x40]
sub ebx, ebp
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ebx
mov eax, dword [esp + 0x58]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xbc], eax
add esp, 0x84
ret
mov ebx, dword [esp + 0x40]
jmp 0x505c42
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.00505880
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov edx, dword [esp + 0x8c]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x90]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
call fcn.004fefc0
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
jmp 0x505c18
mov edx, dword [esp + 0x74]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], 0
mov edx, dword [esp + 0x90]
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], 0xa
mov dword [esp + 0xb4], 1
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
add esp, 0x84
ret
mov ebx, eax
mov eax, ecx
mov ecx, ebx
jmp 0x505bf2
movzx edx, byte [esp + 0x2e]
test dl, dl
je 0x505d6c
mov edx, 1
test dl, dl
je 0x505bcd
mov ecx, dword [0x8ada34]
mov eax, dword [0x8ada30]
jmp 0x505bcd
mov ebx, dword [esp + 0x30]
cmp ebx, 0x5f
sete dl
jmp 0x505d53
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
mov edx, dword [0x8ad9ec]
mov dword [esp + 8], edx
call fcn.00402fc0
movzx eax, byte [esp + 0xc]
test al, al
je 0x505da4
xor ecx, ecx
xor eax, eax
jmp 0x505bc5
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x58]
jmp 0x505bc5
cmp al, 0x61
jb 0x505dc6
cmp al, 0x7a
ja 0x505dc6
add eax, 0xffffffa9
movzx eax, al
jmp 0x505b08
cmp al, 0x41
jb 0x505df3
cmp al, 0x5a
ja 0x505df3
mov edx, dword [esp + 0x50]
cmp edx, 0x24
jg 0x505deb
add eax, 0xffffffc9
movzx eax, al
mov edx, dword [esp + 0x9c]
jmp 0x505b08
add eax, 0xffffffe3
movzx eax, al
jmp 0x505ddf
mov eax, 0x3f
jmp 0x505b08
movzx ecx, byte [esp + 0xa0]
jmp 0x505abb
cmp al, 0x30
jne 0x505939
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x98]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
test edx, edx
je 0x505e5f
mov ebx, 0xa
mov ebp, 1
xor esi, esi
mov edi, ebp
mov dword [esp + 0x34], esi
mov ebp, ebx
mov esi, 0x30
mov ebx, dword [esp + 0x9c]
jmp 0x505950
cmp al, 0x58
ja 0x505f12
cmp al, 0x42
jne 0x505ec8
mov ebx, 0x62
mov ebp, 2
test ebx, ebx
je 0x505ec1
cmp ebx, 0x30
jne 0x505e8c
xor esi, esi
mov edi, ebx
mov ebx, ebp
mov ebp, esi
mov esi, edi
jmp 0x505e46
mov dword [esp + 0x34], ebx
mov dword [esp + 0x54], ebp
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x98]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x54]
jmp 0x505e80
mov esi, 1
jmp 0x505e82
cmp al, 0x4f
jne 0x505ed9
mov ebx, 0x6f
mov ebp, 8
jmp 0x505e77
cmp al, 0x58
jne 0x505eea
mov ebx, 0x78
mov ebp, 0x10
jmp 0x505e77
movzx ebx, byte [esp + 0xa0]
test bl, bl
je 0x505f06
xor ebp, ebp
mov esi, 0xa
mov ebx, ebp
mov ebp, esi
jmp 0x505e77
mov ebp, 0x30
mov esi, 8
jmp 0x505efd
cmp al, 0x62
je 0x505e6d
cmp al, 0x6f
je 0x505ecd
cmp al, 0x78
je 0x505ede
jmp 0x505eea
mov ebp, ebx
mov esi, 0x2e
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x34], ebp
mov ebp, ebx
jmp 0x505950
movzx ecx, byte [esp + 0xa0]
test cl, cl
je 0x505f81
xor edx, edx
test dl, dl
jne 0x5058ff
test cl, cl
je 0x505f7d
cmp eax, 2
jne 0x505f6b
mov edx, 1
test dl, dl
jne 0x5058ff
jmp 0x505f8e
cmp eax, 8
je 0x505f5c
cmp eax, 0xa
je 0x505f5c
cmp eax, 0x10
sete dl
jmp 0x505f61
xor edx, edx
jmp 0x505f61
cmp eax, 2
jl 0x505f49
cmp eax, 0x3e
setle dl
jmp 0x505f4b
mov dword [esp], eax
call fcn.00407da0
mov eax, dword [esp + 4]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x659040]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
lea eax, [0x6a765b]
mov dword [esp], eax
mov dword [esp + 4], 0x16
lea eax, [esp + 0x7c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b9630
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00407e70
mov eax, dword [esp + 8]
lea ecx, [0x659b80]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0042a9b0
nop
call fcn.0044f4e0
jmp fcn.005058d0