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

Disassembly:
push 0xffffffffffffffff
push 0x477773
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4947a0]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4947a0]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x18], eax
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xc4]
mov dword [esp + 0xbc], 2
push ecx
mov esi, 0xf
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00401910
push 0xffffffffffffffff
mov byte [esp + 0xb8], 3
push ebx
lea edx, [esp + 0xe0]
push edx
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.00401910
mov byte [esp + 0xb4], 4
mov eax, dword [esp + 0x58]
mov edi, 0x10
cmp dword [esp + 0x6c], edi
jae 0x41072b
lea eax, [esp + 0x58]
mov ecx, dword [esp + 0x68]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
xor eax, eax
call fcn.004057e0
cmp eax, 0xffffffff
je 0x41098e
push 1
push 0x483354
lea ecx, [esp + 0x94]
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
call fcn.00401bf0
mov byte [esp + 0xb4], 5
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], edi
jae 0x410784
lea eax, [esp + 0x58]
mov ecx, dword [esp + 0x68]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
xor eax, eax
call fcn.004057e0
mov esi, eax
mov eax, dword [esp + 0x90]
cmp dword [esp + 0xa4], edi
jae 0x4107af
lea eax, [esp + 0x90]
mov ecx, dword [esp + 0xa0]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
mov eax, esi
call fcn.004057e0
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0x38]
cmp eax, 0xffffffff
je 0x41080e
sub eax, ecx
sub eax, esi
add ecx, esi
push eax
lea esi, [esp + 0x74]
call fcn.0040cf20
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xc0], 6
call fcn.00401910
mov byte [esp + 0xb4], 5
cmp dword [esp + 0x88], edi
jb 0x41084e
mov eax, dword [esp + 0x74]
push eax
jmp 0x410846
add ecx, esi
push 0xffffffffffffffff
lea esi, [esp + 0x74]
call fcn.0040cf20
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xc0], 7
call fcn.00401910
mov byte [esp + 0xb4], 5
cmp dword [esp + 0x88], edi
jb 0x41084e
mov edx, dword [esp + 0x74]
push edx
call fcn.004396bc
add esp, 4
mov eax, dword [esp + 0xfc]
cmp dword [esp + 0x110], edi
jae 0x410865
lea eax, [esp + 0xfc]
mov ecx, dword [esp + 0x10c]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
xor eax, eax
call fcn.004057e0
mov ebp, eax
cmp ebp, 0xffffffff
je 0x410968
push ebp
xor ecx, ecx
lea esi, [esp + 0x74]
lea edx, [esp + 0x3c]
call fcn.0040cf20
mov byte [esp + 0xb4], 8
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x88], edi
jae 0x4108ae
lea eax, [esp + 0x74]
push eax
call fcn.0045ea44
mov edi, dword [esp + 0x1c]
add esp, 4
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.0040d100
mov eax, dword [esp + 0x10c]
push 0xffffffffffffffff
lea ecx, [eax + ebp]
lea esi, [esp + 0x20]
lea edx, [esp + 0x3c]
call fcn.0040cf20
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xc0], 9
call fcn.00401910
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x41090f
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004396bc
add esp, 4
mov eax, dword [esp + 0xfc]
cmp dword [esp + 0x110], esi
jae 0x410926
lea eax, [esp + 0xfc]
mov edx, dword [esp + 0x10c]
push edx
push eax
lea eax, [esp + 0x40]
push eax
xor eax, eax
call fcn.004057e0
mov byte [esp + 0xb4], 5
mov ebp, eax
cmp dword [esp + 0x88], esi
jb 0x41095b
mov ecx, dword [esp + 0x74]
push ecx
call fcn.004396bc
add esp, 4
mov edi, esi
cmp ebp, 0xffffffff
jne 0x410885
xor ebx, ebx
mov byte [esp + 0xb4], 4
cmp dword [esp + 0xa4], edi
jb 0x410989
mov edx, dword [esp + 0x90]
push edx
call fcn.004396bc
add esp, 4
mov esi, 0xf
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
sar ecx, 2
test ecx, ecx
ja 0x410a79
mov esi, dword [esp + 0xec]
mov eax, esi
cmp esi, 4
jb 0x4109b6
mov eax, 4
mov edx, dword [esp + 0xdc]
cmp dword [esp + 0xf0], edi
jae 0x4109cd
lea edx, [esp + 0xdc]
mov ecx, str.SPD:
call fcn.00401d10
cmp eax, ebx
jne 0x410a0b
cmp esi, 4
jb 0x410a0b
xor eax, eax
cmp esi, 4
setne al
cmp eax, ebx
jne 0x410a0b
mov edi, dword [esp + 0x18]
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], 1
call fcn.0040d100
mov dword [esp + 0x14], 1
jmp 0x410a66
mov ecx, str.SPT:
lea edi, [esp + 0xd8]
call fcn.00401da0
test eax, eax
je 0x410a2e
mov ecx, str.OTF:
call fcn.00401da0
test eax, eax
jne 0x410a71
mov edi, dword [esp + 0x18]
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], 1
call fcn.0040d100
mov esi, 1
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.0040d100
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.0040d100
mov dword [esp + 0x14], esi
lea ebx, [esp + 0x14]
call fcn.0040d100
xor ebx, ebx
mov edi, 0x10
lea esi, [edi - 1]
cmp dword [esp + 0x6c], edi
jb 0x410a8c
mov edx, dword [esp + 0x58]
push edx
call fcn.004396bc
add esp, 4
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
cmp dword [esp + 0x50], edi
jb 0x410aab
mov eax, dword [esp + 0x3c]
push eax
call fcn.004396bc
add esp, 4
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0xd4], edi
jb 0x410ad0
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.004396bc
add esp, 4
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
cmp dword [esp + 0xf0], edi
jb 0x410afe
mov edx, dword [esp + 0xdc]
push edx
call fcn.004396bc
add esp, 4
mov dword [esp + 0xf0], esi
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
cmp dword [esp + 0x110], edi
jb 0x410b2c
mov eax, dword [esp + 0xfc]
push eax
call fcn.004396bc
add esp, 4
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0045e1a6
add esp, 0xa4
ret