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

Disassembly:
push 0xffffffffffffffff
push 0x100fced7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0xc8]
xor edi, edi
push eax
xor ebx, ebx
mov dword [esp + 0x14], edi
call fcn.1005f280
mov ecx, dword [0x1012bf40]
push ecx
push 1
lea edx, [esp + 0x94]
push 0xc
push edx
mov dword [esp + 0x108], ebx
call fcn.1009cac9
mov eax, dword [0x1012bf40]
push eax
push 1
lea ecx, [esp + 0xb0]
push 0xc
push ecx
call fcn.1009cac9
mov edx, dword [0x1012bf40]
push edx
push 1
lea eax, [esp + 0xcc]
push 0x10
push eax
call fcn.1009cac9
add esp, 0x30
lea ecx, [esp + 0x18]
call fcn.10077b60
mov ecx, dword [0x1012bf40]
mov esi, dword [0x1012bf38]
xor ebp, ebp
push ecx
mov byte [esp + 0xfc], 1
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], ebx
call fcn.1009c946
mov edx, dword [esi - 4]
add esp, 4
sub edx, eax
mov dword [esp + 0x14], edx
je 0x1005fb9b
mov eax, dword [0x1012bf40]
push eax
push 1
lea ecx, [esp + 0x40]
push 8
push ecx
call fcn.1009cac9
add esp, 0x10
cmp eax, 1
jb 0x1005fb41
mov edx, dword [0x1012bf40]
push edx
call fcn.1009c946
mov edx, dword [esp + 0x40]
mov ecx, dword [0x1012bf38]
add eax, edx
add esp, 4
mov dword [esp + 0x58], eax
lea eax, [esp + 0x58]
push eax
push ecx
mov ecx, 0x1012bf30
call fcn.10063640
mov eax, dword [esp + 0x38]
xor edx, edx
mov dh, byte [esp + 0x3a]
mov ecx, eax
shr ecx, 0x18
or edx, ecx
mov ecx, eax
and eax, 0xff00
shl ecx, 0x10
or ecx, eax
shl ecx, 8
mov eax, edx
or eax, ecx
cmp eax, 0x4b455953
jg 0x1005f9f5
je 0x1005f85e
cmp eax, 0x414e494d
je 0x1005f806
cmp eax, 0x424f4e45
jne 0x1005fb41
push 0x240
call fcn.10099f75
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xf8], 3
je 0x1005f746
mov ecx, eax
call fcn.10074c30
mov edi, eax
jmp 0x1005f748
xor edi, edi
mov eax, dword [0x1012bf08]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, 0x1012bf00
mov byte [esp + 0x100], 1
mov dword [esp + 0x18], edi
call fcn.10063640
mov ecx, dword [0x1012bf40]
mov esi, dword [0x1012bf38]
push ecx
call fcn.1009c946
mov edx, dword [esi - 4]
add esp, 4
sub edx, eax
mov dword [esp + 0x14], edx
je 0x1005f7fd
mov eax, dword [0x1012bf40]
push eax
push 1
lea ecx, [esp + 0x68]
push 4
push ecx
call fcn.1009cac9
mov edx, dword [0x1012bf40]
mov esi, dword [esp + 0x70]
push edx
push 1
lea eax, [esp + 0x6c]
push 4
push eax
call fcn.1009cac9
mov ecx, dword [0x1012bf04]
add esp, 0x20
test ecx, ecx
jne 0x1005f7c7
xor eax, eax
jmp 0x1005f7d1
mov eax, dword [0x1012bf08]
sub eax, ecx
sar eax, 2
mov ecx, dword [esp + 0x54]
push eax
push ecx
push esi
call fcn.10078f00
mov edx, dword [0x1012bf40]
mov esi, dword [0x1012bf38]
push edx
call fcn.1009c946
mov ecx, dword [esi - 4]
add esp, 4
sub ecx, eax
mov dword [esp + 0x14], ecx
jne 0x1005f789
mov dword [esp + 0x10], edi
jmp 0x1005fb41
mov edx, dword [0x1012bf40]
push edx
push 1
lea eax, [esp + 0xcc]
push 4
push eax
call fcn.1009cac9
mov ecx, dword [0x1012bf40]
push ecx
push 1
lea edx, [esp + 0x88]
push 4
push edx
call fcn.1009cac9
mov ecx, dword [0x1012bf40]
mov eax, dword [esp + 0x90]
push ecx
push 1
lea edx, [esp + 0x48]
push 4
push edx
mov dword [esp + 0x64], eax
call fcn.1009cac9
add esp, 0x30
jmp 0x1005fb41
mov eax, dword [0x1012bf40]
push eax
push 1
lea ecx, [esp + 0x70]
push 4
push ecx
call fcn.1009cac9
mov edx, dword [0x1012bf40]
mov esi, dword [0x1012bf38]
push edx
call fcn.1009c946
mov ecx, dword [esi - 4]
add esp, 0x14
sub ecx, eax
mov dword [esp + 0x14], ecx
je 0x1005fb41
mov eax, dword [esp + 0x68]
mov edi, eax
mov ebp, eax
mov ebx, eax
and edi, 1
and ebp, 2
and ebx, 4
mov edx, dword [0x1012bf40]
push edx
push 1
lea eax, [esp + 0x6c]
push 4
push eax
call fcn.1009cac9
mov esi, dword [esp + 0x74]
add esp, 0x10
test edi, edi
je 0x1005f91a
mov ecx, dword [0x1012bf40]
push ecx
push 1
lea edx, [esp + 0x88]
push 0xc
push edx
call fcn.1009cac9
fld dword [esp + 0x90]
fstp dword [esp + 0x84]
fld dword [esp + 0x94]
add esp, 0x10
lea eax, [esp + 0x74]
fstp dword [esp + 0x78]
fld dword [esp + 0x88]
push eax
fstp dword [esp + 0x80]
push esi
lea ecx, [esp + 0x20]
call fcn.10078280
test ebp, ebp
je 0x1005f95c
mov ecx, dword [0x1012bf40]
push ecx
push 1
lea edx, [esp + 0x30]
push 0xc
push edx
call fcn.1009cac9
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
add esp, 0x10
push eax
push ecx
push edx
lea ecx, [esp + 0xf0]
call fcn.1000d0e0
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.10078190
test ebx, ebx
je 0x1005f9cc
mov eax, dword [0x1012bf40]
push eax
push 1
lea ecx, [esp + 0xbc]
push 0x10
push ecx
call fcn.1009cac9
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xc8]
add esp, 0x10
push edx
push eax
push ecx
lea ecx, [esp + 0xe4]
call fcn.1000d0e0
fld dword [esp + 0xb4]
fstp dword [esp + 0x44]
mov edx, dword [eax]
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x4c], ecx
mov edx, dword [eax + 8]
lea eax, [esp + 0x44]
push eax
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], edx
call fcn.10078370
mov ecx, dword [0x1012bf40]
mov esi, dword [0x1012bf38]
push ecx
call fcn.1009c946
mov edx, dword [esi - 4]
add esp, 4
sub edx, eax
mov dword [esp + 0x14], edx
jne 0x1005f8a9
jmp 0x1005fb39
cmp eax, 0x4d455348
je 0x1005fa4c
cmp eax, 0x4e4f4445
jne 0x1005fb41
test edi, edi
jne 0x1005fa41
push 0x2a0
call fcn.10099f75
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xf8], 4
je 0x1005fa31
mov ecx, eax
call fcn.1006b2d0
jmp 0x1005fa33
xor eax, eax
mov byte [esp + 0xf8], 1
mov dword [esp + 0x10], eax
mov edi, eax
push edi
call fcn.1005f5c0
jmp 0x1005fb41
call fcn.10078bc0
push 0x2a0
call fcn.10099f75
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xf8], 2
je 0x1005fa77
mov ecx, eax
call fcn.1006b2d0
jmp 0x1005fa79
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov eax, dword [0x1012bf40]
push eax
push 1
lea ecx, [esp + 0x64]
push 4
push ecx
mov byte [esp + 0x108], 1
call fcn.1009cac9
mov eax, dword [0x1012bf40]
mov edx, dword [esp + 0x6c]
mov esi, dword [0x1012bf38]
push eax
mov dword [esp + 0x30], edx
xor edi, edi
call fcn.1009c946
mov ecx, dword [esi - 4]
add esp, 0x14
sub ecx, eax
mov dword [esp + 0x14], ecx
je 0x1005fb35
call fcn.1005fdf0
cmp eax, 0x54524953
je 0x1005fae2
cmp eax, 0x56525453
jne 0x1005fae7
call fcn.1005fe70
mov edi, eax
jmp 0x1005fae7
call fcn.100601c0
mov edx, dword [0x1012bf38]
mov eax, dword [edx - 4]
mov ecx, dword [0x1012bf40]
push 0
push eax
push ecx
call fcn.1009b2b5
mov edx, dword [0x1012bf38]
add esp, 0xc
add edx, 0xfffffffc
push edx
mov ecx, 0x1012bf30
call fcn.1003a410
mov eax, dword [0x1012bf40]
mov esi, dword [0x1012bf38]
push eax
call fcn.1009c946
mov ecx, dword [esi - 4]
add esp, 4
sub ecx, eax
mov dword [esp + 0x14], ecx
jne 0x1005fac6
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
mov edx, dword [0x1012bf38]
mov eax, dword [edx - 4]
mov ecx, dword [0x1012bf40]
push 0
push eax
push ecx
call fcn.1009b2b5
mov edx, dword [0x1012bf38]
add esp, 0xc
add edx, 0xfffffffc
push edx
mov ecx, 0x1012bf30
call fcn.1003a410
mov eax, dword [0x1012bf40]
mov esi, dword [0x1012bf38]
push eax
call fcn.1009c946
mov ecx, dword [esi - 4]
add esp, 4
sub ecx, eax
mov dword [esp + 0x14], ecx
jne 0x1005f684
test edi, edi
mov ebp, dword [esp + 0x34]
jne 0x1005fbd1
push 0x2a0
call fcn.10099f75
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0xf8], 5
je 0x1005fbc1
mov ecx, eax
call fcn.1006b2d0
jmp 0x1005fbc3
xor eax, eax
mov byte [esp + 0xf8], 1
mov dword [esp + 0x10], eax
mov edi, eax
lea edx, [esp + 0xc8]
push edx
mov ecx, edi
call fcn.10069a50
fld dword [esp + 0x8c]
fstp dword [esp + 0x28]
fld dword [esp + 0x90]
lea eax, [esp + 0x28]
fstp dword [esp + 0x2c]
fld dword [esp + 0x94]
push eax
fstp dword [esp + 0x34]
mov ecx, edi
call fcn.10069f40
fld dword [esp + 0x98]
fstp dword [esp + 0x28]
fld dword [esp + 0x9c]
lea ecx, [esp + 0x28]
fstp dword [esp + 0x2c]
fld dword [esp + 0xa0]
push ecx
fstp dword [esp + 0x34]
mov ecx, edi
call fcn.10069f90
fld dword [esp + 0xa8]
fstp dword [esp + 0x38]
fld dword [esp + 0xac]
mov edx, dword [esp + 0x38]
fstp dword [esp + 0x3c]
fld dword [esp + 0xb0]
mov eax, dword [esp + 0x3c]
fstp dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
fld dword [esp + 0xa4]
mov dword [esp + 0x48], edx
lea edx, [esp + 0x44]
mov dword [esp + 0x50], ecx
fstp dword [esp + 0x44]
push edx
mov ecx, edi
mov dword [esp + 0x50], eax
call fcn.10069fe0
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 0x238]
call fcn.10077ff0
test ebx, ebx
je 0x1005fd4d
push ebx
call fcn.10079290
test byte [esp + 0x6c], 1
jne 0x1005fcb6
mov ecx, ebx
call fcn.1006b800
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x1005fcd0
mov ecx, dword [0x1012bf14]
mov edx, dword [ebx]
lea eax, [ecx + eax*4]
push eax
mov ecx, ebx
call dword [edx + 0x54]
mov eax, dword [0x1012bf04]
test eax, eax
je 0x1005fd4d
mov ecx, dword [0x1012bf08]
sub ecx, eax
test ecx, 0xfffffffc
je 0x1005fd4d
lea edx, [esp + 0x1c]
push edx
push 1
push eax
mov ecx, 0x1012bf00
mov dword [esp + 0x28], ebx
call fcn.10086940
push 0x4c
call fcn.10099f75
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0xf8], 6
je 0x1005fd28
push ebp
push 0x1012bf00
mov ecx, eax
call fcn.1006e1f0
jmp 0x1005fd2a
xor eax, eax
push eax
mov ecx, ebx
mov byte [esp + 0xfc], 1
call fcn.10068140
mov ecx, ebx
call fcn.1006b860
mov eax, dword [0x1012bf04]
mov dword [0x1012bf08], eax
jmp 0x1005fd88
test ebp, ebp
je 0x1005fd88
push 0x4c
call fcn.10099f75
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0xf8], 7
je 0x1005fd76
push ebp
push edi
mov ecx, eax
call fcn.1006df30
jmp 0x1005fd78
xor eax, eax
push eax
mov ecx, edi
mov byte [esp + 0xfc], 1
call fcn.10068140
mov eax, dword [esp + 0x100]
test eax, eax
je 0x1005fd9b
push eax
mov ecx, edi
call fcn.100699c0
lea ecx, [esp + 0x18]
mov byte [esp + 0xf8], 0
call fcn.10077ed0
mov ecx, dword [esp + 0xcc]
test ecx, ecx
je 0x1005fdd3
mov al, byte [ecx - 1]
test al, al
je 0x1005fdc9
cmp al, 0xff
je 0x1005fdc9
dec al
mov byte [ecx - 1], al
jmp 0x1005fdd3
dec ecx
push ecx
call fcn.1008cc5c
add esp, 4
mov ecx, dword [esp + 0xf0]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xec
ret 4