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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a16a6
sub esp, 0x68
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x1a4]
mov edx, dword [eax + 0x1a8]
mov ebx, dword [eax + 0x1ac]
mov ebp, dword [eax + 0x1b0]
sub edx, ebp
cmp edx, 4
jge 0x5a0d7b
mov dword [esp], eax
mov byte [esp + 4], 0
call fcn.0059d1d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x5a0d19
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
add esp, 0x68
ret
nop
sub ebx, ebp
neg ebx
sar ebx, 0x1f
and ebp, ebx
movzx edx, byte [ecx + ebp + 1]
shl edx, 0x10
movzx ebx, byte [ecx + ebp + 2]
shl ebx, 8
or ebx, edx
movzx ecx, byte [ecx + ebp + 3]
or ecx, ebx
mov dword [esp + 0x24], ecx
cmp ecx, 0x10000
jle 0x5a0f49
mov dword [esp], eax
mov byte [esp + 4], 0x50
call fcn.0059fd00
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00408890
mov eax, dword [esp + 4]
lea ecx, [0x63e5e0]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
lea eax, [0x6d1274]
mov dword [esp + 0x64], eax
lea eax, [0x685f1d]
mov dword [esp], eax
mov dword [esp + 4], 0x45
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004b2970
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], ecx
lea edx, [0x64dd80]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00408b80
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5a0ea3
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x6c]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0xe996c0]
test ecx, ecx
jne 0x5a0e92
mov eax, dword [esp + 0x40]
mov dword [edx + 0xd4], eax
jmp 0x5a0f13
lea edi, [edx + 0xd4]
mov eax, dword [esp + 0x40]
call fcn.0045efc0
jmp 0x5a0f13
mov dword [esp + 0x54], edx
mov dword [esp + 0x4c], ecx
lea eax, [0x6477c0]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x54]
mov dword [eax], ecx
mov ecx, dword [0xe996c0]
test ecx, ecx
jne 0x5a0ed6
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
jmp 0x5a0ee6
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.0045efc0
mov eax, ecx
lea ecx, [0x6d2f68]
mov edx, dword [esp + 0x6c]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0xe996c0]
test ecx, ecx
jne 0x5a0f08
mov dword [edx + 0xd4], eax
jmp 0x5a0f13
lea edi, [edx + 0xd4]
call fcn.0045efc0
mov eax, dword [edx + 0xd0]
mov ecx, dword [edx + 0xd4]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x68
ret
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x24]
lea edx, [ecx + 4]
mov ebx, dword [eax + 0x1a8]
sub ebx, dword [eax + 0x1b0]
cmp ebx, edx
jge 0x5a0f9b
mov dword [esp], eax
mov byte [esp + 4], 0
call fcn.0059d1d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x5a0f41
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
add esp, 0x68
ret
nop
mov byte [eax + 0x1b4], 0
nop
mov ecx, dword [eax + 0x1a4]
mov ebx, dword [eax + 0x1a8]
mov ebp, dword [eax + 0x1ac]
mov esi, dword [eax + 0x1b0]
sub ebx, esi
cmp ebx, edx
jl 0x5a0fc4
mov ebx, edx
lea edx, [ebx + esi]
mov dword [eax + 0x1b0], edx
sub ebp, esi
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and esi, ebp
lea edx, [ecx + esi]
test ebx, ebx
jle 0x5a0fe8
mov byte [eax + 0x1b4], 0xff
mov dword [esp + 0x20], ebx
mov dword [esp + 0x50], edx
movzx ecx, byte [ecx + esi]
cmp cl, 0xb
ja 0x5a1191
cmp cl, 2
ja 0x5a107c
test cl, cl
jne 0x5a1019
test ebx, ebx
lea ecx, [0x6d39d0]
lea ebp, [0xe99394]
jmp 0x5a1485
cmp cl, 1
jne 0x5a104d
lea eax, [0x669fc0]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov edx, dword [esp + 0x50]
mov ebx, ecx
lea ecx, [0x6d3958]
mov ebp, eax
mov eax, dword [esp + 0x6c]
jmp 0x5a1485
lea eax, [0x668bc0]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov edx, dword [esp + 0x50]
mov ebx, ecx
lea ecx, [0x6d3a48]
mov ebp, eax
mov eax, dword [esp + 0x6c]
jmp 0x5a1485
cmp cl, 5
ja 0x5a10fb
cmp cl, 4
jne 0x5a10df
cmp word [eax + 0x24], 0x304
jne 0x5a10ae
lea eax, [0x65d8a0]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
test ecx, ecx
lea edx, [0x6d3a18]
jmp 0x5a10cc
lea eax, [0x64d480]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
test ecx, ecx
lea edx, [0x6d3a00]
mov ebx, ecx
mov ecx, edx
mov ebp, eax
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x50]
jmp 0x5a1485
cmp cl, 5
jne 0x5a1316
test ebx, ebx
lea ecx, [0x6d39a0]
lea ebp, [0xe99394]
jmp 0x5a1485
cmp cl, 8
je 0x5a1162
cmp cl, 0xb
jne 0x5a1316
cmp word [eax + 0x24], 0x304
jne 0x5a1131
lea eax, [0x6573c0]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
test ecx, ecx
lea edx, [0x6d38e0]
jmp 0x5a114f
lea eax, [0x64d1e0]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
test ecx, ecx
lea edx, [0x6d38c8]
mov ebx, ecx
mov ecx, edx
mov ebp, eax
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x50]
jmp 0x5a1485
lea eax, [0x64d300]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov edx, dword [esp + 0x50]
mov ebx, ecx
lea ecx, [0x6d3988]
mov ebp, eax
mov eax, dword [esp + 0x6c]
jmp 0x5a1485
cmp cl, 0xf
ja 0x5a1297
cmp cl, 0xd
ja 0x5a1244
cmp cl, 0xc
je 0x5a1215
cmp word [eax + 0x24], 0x304
jne 0x5a11d6
lea eax, [0x65d800]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
test ecx, ecx
lea ebx, [0x6d3910]
mov edx, eax
mov eax, dword [esp + 0x6c]
jmp 0x5a1204
lea eax, [0x65b100]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 0x6c]
cmp word [eax + 0x24], 0x303
setae cl
mov edx, dword [esp + 4]
mov byte [edx + 0xc], cl
mov ecx, dword [esp + 0x20]
test ecx, ecx
lea ebx, [0x6d38f8]
mov ecx, ebx
mov ebp, edx
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x20]
jmp 0x5a1485
lea eax, [0x64d5a0]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov edx, dword [esp + 0x50]
mov ebx, ecx
lea ecx, [0x6d3a60]
mov ebp, eax
mov eax, dword [esp + 0x6c]
jmp 0x5a1485
cmp cl, 0xe
jne 0x5a125c
test ebx, ebx
lea ecx, [0x6d3a30]
lea ebp, [0xe99394]
jmp 0x5a1485
lea eax, [0x657440]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 0x6c]
cmp word [eax + 0x24], 0x303
setae cl
mov edx, dword [esp + 4]
mov byte [edx + 0xc], cl
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov ebx, ecx
lea ecx, [0x6d3940]
mov ebp, edx
mov edx, dword [esp + 0x50]
jmp 0x5a1485
cmp cl, 0x14
ja 0x5a1304
cmp cl, 0x10
je 0x5a12d5
cmp cl, 0x14
jne 0x5a1316
lea eax, [0x64d360]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov edx, dword [esp + 0x50]
mov ebx, ecx
lea ecx, [0x6d39b8]
mov ebp, eax
mov eax, dword [esp + 0x6c]
jmp 0x5a1485
lea eax, [0x64d2a0]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov edx, dword [esp + 0x50]
mov ebx, ecx
lea ecx, [0x6d3970]
mov ebp, eax
mov eax, dword [esp + 0x6c]
jmp 0x5a1485
cmp cl, 0x16
je 0x5a145b
cmp cl, 0x18
je 0x5a142f
mov dword [esp], eax
mov byte [esp + 4], 0xa
call fcn.0059fed0
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x3c], ecx
lea edx, [0x64dd80]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00408b80
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5a1391
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x6c]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0xe996c0]
test ecx, ecx
jne 0x5a1380
mov eax, dword [esp + 0x3c]
mov dword [edx + 0xd4], eax
jmp 0x5a1401
lea edi, [edx + 0xd4]
mov eax, dword [esp + 0x3c]
call fcn.0045efc0
jmp 0x5a1401
mov dword [esp + 0x54], edx
mov dword [esp + 0x48], ecx
lea eax, [0x6477c0]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x54]
mov dword [eax], ecx
mov ecx, dword [0xe996c0]
test ecx, ecx
jne 0x5a13c4
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
jmp 0x5a13d4
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x48]
call fcn.0045efc0
mov eax, ecx
lea ecx, [0x6d2f68]
mov edx, dword [esp + 0x6c]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0xe996c0]
test ecx, ecx
jne 0x5a13f6
mov dword [edx + 0xd4], eax
jmp 0x5a1401
lea edi, [edx + 0xd4]
call fcn.0045efc0
mov eax, dword [edx + 0xd0]
mov ecx, dword [edx + 0xd4]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x68
ret
lea eax, [0x64d420]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov edx, dword [esp + 0x50]
mov ebx, ecx
lea ecx, [0x6d39e8]
mov ebp, eax
mov eax, dword [esp + 0x6c]
jmp 0x5a1485
lea eax, [0x64d240]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov edx, dword [esp + 0x50]
mov ebx, ecx
lea ecx, [0x6d3928]
mov ebp, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], ecx
ja 0x5a149d
xor esi, esi
xor edi, edi
xor esi, esi
mov dword [esp + 0x2c], esi
xor esi, esi
jmp 0x5a14df
mov dword [esp], 0
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebx
lea eax, [0x63efa0]
mov dword [esp + 0x10], eax
call fcn.00447550
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov esi, eax
mov edi, edx
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x30], edi
mov dword [esp + 0x50], esi
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.0045f7b0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x34]
mov dword [esp], edx
mov ebx, dword [esp + 0x50]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x2c]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], esi
call ecx
movzx eax, byte [esp + 0x10]
test al, al
je 0x5a1589
mov eax, dword [esp + 0x70]
test eax, eax
je 0x5a1554
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
call eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5a1561
mov ecx, dword [eax + 4]
jmp 0x5a1563
mov ecx, eax
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x68
ret
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov byte [esp + 4], 0xa
call fcn.0059fed0
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x38], ecx
lea edx, [0x64dd80]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00408b80
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5a1608
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x6c]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0xe996c0]
test ecx, ecx
jne 0x5a15f7
mov eax, dword [esp + 0x38]
mov dword [edx + 0xd4], eax
jmp 0x5a1678
lea edi, [edx + 0xd4]
mov eax, dword [esp + 0x38]
call fcn.0045efc0
jmp 0x5a1678
mov dword [esp + 0x54], edx
mov dword [esp + 0x44], ecx
lea eax, [0x6477c0]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x54]
mov dword [eax], ecx
mov ecx, dword [0xe996c0]
test ecx, ecx
jne 0x5a163b
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ecx
jmp 0x5a164b
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x44]
call fcn.0045efc0
mov eax, ecx
lea ecx, [0x6d2f68]
mov edx, dword [esp + 0x6c]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0xe996c0]
test ecx, ecx
jne 0x5a166d
mov dword [edx + 0xd4], eax
jmp 0x5a1678
lea edi, [edx + 0xd4]
call fcn.0045efc0
mov eax, dword [edx + 0xd0]
mov ecx, dword [edx + 0xd4]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x68
ret
call fcn.0045dbb0
jmp fcn.005a0d00