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

Disassembly:
push 0xffffffffffffffff
push 0x409050
mov eax, dword fs:[0]
push eax
sub esp, 0x6d0
mov eax, dword [0x40d01c]
xor eax, esp
mov dword [esp + 0x6c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40d01c]
xor eax, esp
push eax
lea eax, [esp + 0x6e4]
mov dword fs:[0], eax
cmp dword [esp + 0x6f4], 0x200
mov esi, ecx
mov dword [esp + 0x1c], esi
jbe 0x4057db
push 0x200
call dword [0x40a130]
add esp, 4
push 0x200
mov ebx, eax
push 0
push ebx
call fcn.004098f8
mov ecx, 0x80
mov edi, ebx
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov ebp, ebx
jmp 0x4057dd
mov ebp, esi
mov ebx, dword [0x40a0ec]
push 6
push 0x40ae00
push ebp
call ebx
add esp, 0xc
test eax, eax
jne 0x405824
add ebp, 6
lea edi, [esp + 0x58]
lea esi, [esp + 0x14]
mov byte [esp + 0x58], al
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov byte [esp + 0x61], al
mov dword [esp + 0x14], ebp
call fcn.00408bb0
mov edx, edi
call fcn.00402cd0
jmp 0x406307
push 6
push 0x40a270
push ebp
call ebx
add esp, 0xc
test eax, eax
jne 0x405890
add ebp, 6
lea edi, [esp + 0x64]
lea esi, [esp + 0x14]
mov byte [esp + 0x64], al
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov word [esp + 0x81], ax
mov byte [esp + 0x83], al
mov dword [esp + 0x14], ebp
call fcn.00408bb0
mov esi, edi
call fcn.00404250
mov edx, 0x40d538
mov ecx, eax
call fcn.00403b80
jmp 0x406307
push 6
push 0x40ae08
push ebp
call ebx
add esp, 0xc
test eax, eax
jne 0x4058e2
push 0x40ae10
lea edx, [esp + 0x1b8]
call fcn.004035e0
lea eax, [esp + 0x1b8]
add esp, 4
push eax
call fcn.00408190
add esp, 4
push 4
xor ebx, ebx
call fcn.00403d60
cmp eax, 1
jne 0x406307
mov dword [0x40d744], ebx
jmp 0x406307
push 6
push 0x40ae24
push ebp
call ebx
add esp, 0xc
test eax, eax
jne 0x40594e
add ebp, 6
lea edi, [esp + 0x64]
lea esi, [esp + 0x14]
mov byte [esp + 0x64], al
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov word [esp + 0x81], ax
mov byte [esp + 0x83], al
mov dword [esp + 0x14], ebp
call fcn.00408bb0
mov esi, edi
call fcn.00404250
mov edx, 0x40d538
mov ecx, eax
call fcn.00403bf0
jmp 0x406307
push 6
push 0x40ae2c
push ebp
call ebx
add esp, 0xc
test eax, eax
jne 0x405969
call fcn.00402620
jmp 0x406307
push 6
push 0x40ae34
push ebp
call ebx
add esp, 0xc
test eax, eax
jne 0x405e4d
add ebp, 6
lea edi, [esp + 0x18]
lea esi, [esp + 0x14]
mov byte [esp + 0x18], al
mov word [esp + 0x19], ax
mov byte [esp + 0x1b], al
mov dword [esp + 0x14], ebp
call fcn.00408bb0
push 1
mov ecx, edi
push 0x40a29c
push ecx
call ebx
add esp, 0xc
test eax, eax
jne 0x4059bc
call fcn.004026a0
jmp 0x406307
push 1
lea edx, [esp + 0x1c]
push 0x40a428
push edx
call ebx
add esp, 0xc
test eax, eax
jne 0x405aed
push 0x103
push eax
mov byte [esp + 0x1bc], al
lea eax, [esp + 0x1bd]
push eax
call fcn.004098f8
add esp, 0xc
push 0x103
lea ecx, [esp + 0x2c1]
push 0
push ecx
mov byte [esp + 0x2c8], 0
call fcn.004098f8
add esp, 0xc
push 0x103
lea edx, [esp + 0x4d1]
push 0
push edx
mov byte [esp + 0x4d8], 0
call fcn.004098f8
xor eax, eax
add esp, 0xc
lea edi, [esp + 0x1b4]
lea esi, [esp + 0x14]
mov byte [esp + 0x58], 0
mov dword [esp + 0x59], eax
mov word [esp + 0x5d], ax
mov byte [esp + 0x5f], al
mov byte [esp + 0x84], al
mov dword [esp + 0x85], eax
mov word [esp + 0x89], ax
mov byte [esp + 0x8b], al
call fcn.00408bb0
lea edi, [esp + 0x2bc]
call fcn.00408bb0
lea edi, [esp + 0x4cc]
call fcn.00408bb0
lea edi, [esp + 0x58]
call fcn.00408bb0
lea edi, [esp + 0x84]
call fcn.00408bb0
lea eax, [esp + 0x2bc]
push eax
push 0x40ae3c
lea edx, [esp + 0xb4]
call fcn.004035e0
lea ecx, [esp + 0xb4]
push ecx
call fcn.00408190
add esp, 0xc
lea edx, [esp + 0x4cc]
push edx
lea eax, [esp + 0x2c0]
push eax
mov edx, edi
lea ecx, [esp + 0x1bc]
call fcn.00402720
add esp, 8
jmp 0x406307
push 1
lea ecx, [esp + 0x1c]
push 0x40ae58
push ecx
call ebx
add esp, 0xc
test eax, eax
jne 0x405ba4
push 0x103
push eax
lea edx, [esp + 0x1bd]
push edx
mov byte [esp + 0x1c0], al
call fcn.004098f8
add esp, 0xc
lea ecx, [esp + 0x64]
call dword [0x40a0cc]
lea ecx, [esp + 0x64]
lea esi, [esp + 0x14]
mov dword [esp + 0x6ec], 0
call fcn.00408ac0
cmp dword [esp + 0x7c], 0x10
mov eax, dword [esp + 0x68]
jae 0x405b54
lea eax, [esp + 0x68]
push eax
call dword [0x40a110]
add esp, 4
lea edi, [esp + 0x1b4]
lea esi, [esp + 0x14]
mov ebx, eax
call fcn.00408bb0
mov eax, edi
push eax
push 0x40ae5c
lea edx, [esp + 0xb4]
call fcn.004035e0
lea ecx, [esp + 0xb4]
push ecx
call fcn.00408190
add esp, 0xc
mov esi, ebx
call fcn.00402b00
lea ecx, [esp + 0x64]
jmp 0x4062f6
push 1
lea edx, [esp + 0x1c]
push 0x40ae74
push edx
call ebx
add esp, 0xc
test eax, eax
jne 0x406307
push 0x40ae78
lea edx, [esp + 0xb0]
call fcn.004035e0
lea eax, [esp + 0xb0]
add esp, 4
push eax
call fcn.00408190
add esp, 4
lea ecx, [esp + 0x64]
call dword [0x40a0cc]
lea ecx, [esp + 0x20]
mov dword [esp + 0x6ec], 1
call dword [0x40a0cc]
push 0x103
lea ecx, [esp + 0x1b9]
mov ebx, 2
push 0
mov byte [esp + 0x6f4], bl
push ecx
mov byte [esp + 0x1c0], 0
call fcn.004098f8
add esp, 0xc
lea ecx, [esp + 0x64]
lea esi, [esp + 0x14]
call fcn.00408ac0
mov edx, dword [0x40a0d4]
mov eax, dword [edx]
push eax
push 6
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x70]
call dword [0x40a0c0]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x6f0], 3
call dword [0x40a0c8]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6ec], bl
call dword [0x40a0d0]
mov eax, dword [esp + 0x24]
mov ebp, 0x10
cmp dword [esp + 0x38], ebp
jae 0x405c89
lea eax, [esp + 0x24]
mov edi, dword [0x40a110]
push eax
call edi
add esp, 4
lea ecx, [esp + 0x64]
lea esi, [esp + 0x14]
mov dword [0x40d754], eax
call fcn.00408ac0
mov edx, dword [0x40a0d4]
mov eax, dword [edx]
push eax
push 6
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x70]
call dword [0x40a0c0]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x6f0], 4
call dword [0x40a0c8]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6ec], bl
call dword [0x40a0d0]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], ebp
jae 0x405cf3
lea eax, [esp + 0x24]
push eax
call edi
add esp, 4
lea ecx, [esp + 0x64]
lea esi, [esp + 0x14]
mov dword [0x40d758], eax
call fcn.00408ac0
mov edx, dword [0x40a0d4]
mov eax, dword [edx]
push eax
push 0xc
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x70]
call dword [0x40a0c0]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x6f0], 5
call dword [0x40a0c8]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6ec], bl
call dword [0x40a0d0]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], ebp
jae 0x405d57
lea eax, [esp + 0x24]
push eax
call edi
add esp, 4
mov dword [0x40d75c], eax
call fcn.004035c0
push eax
push 0x40ae90
lea edx, [esp + 0xb4]
call fcn.004035e0
lea edx, [esp + 0xb4]
push edx
call fcn.00408190
add esp, 0xc
call fcn.00406fe0
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405d95
sub eax, edx
cmp eax, ebx
jbe 0x405e2d
jmp 0x405db0
lea ecx, [esp + 0x64]
lea esi, [esp + 0x14]
call fcn.00408ac0
lea eax, [esp + 0x64]
push eax
call fcn.00406f30
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x7c], ebp
jae 0x405dd5
lea eax, [esp + 0x68]
mov ecx, dword [esp + 0x78]
push ecx
push eax
lea edx, [esp + 0x1bc]
push edx
call fcn.004098f2
add esp, 0xc
lea eax, [esp + 0x1b4]
push eax
push 0x40aea8
lea edx, [esp + 0xb4]
call fcn.004035e0
lea ecx, [esp + 0xb4]
push ecx
call fcn.00408190
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [eax + 1]
jmp 0x405e20
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405e20
sub eax, edx
cmp eax, ebx
ja 0x405db0
call fcn.00402c50
lea ecx, [esp + 0x20]
mov byte [esp + 0x6ec], 1
call dword [0x40a0d0]
lea ecx, [esp + 0x64]
jmp 0x4062f6
push 6
push 0x40aebc
push ebp
call ebx
add esp, 0xc
test eax, eax
jne 0x405fe4
push 0x40aec4
lea edx, [esp + 0xb0]
call fcn.004035e0
lea edx, [esp + 0xb0]
add esp, 4
push edx
call fcn.00408190
xor eax, eax
add ebp, 6
add esp, 4
lea edi, [esp + 0x18]
lea esi, [esp + 0x14]
mov byte [esp + 0x18], 0
mov word [esp + 0x19], ax
mov byte [esp + 0x1b], al
mov dword [esp + 0x14], ebp
call fcn.00408bb0
push 1
mov eax, edi
push 0x40a29c
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x405f05
push 0x40aee0
lea edx, [esp + 0xb0]
call fcn.004035e0
lea ecx, [esp + 0xb0]
add esp, 4
push ecx
call fcn.00408190
add esp, 4
cmp dword [0x40d74c], 0
jne 0x406307
push 0x4016f0
call fcn.004089a0
add esp, 4
mov dword [0x40d74c], eax
jmp 0x406307
push 1
lea edx, [esp + 0x1c]
push 0x40a428
push edx
call ebx
add esp, 0xc
test eax, eax
jne 0x406307
push 0x103
push eax
mov byte [esp + 0x2c4], al
lea eax, [esp + 0x2c5]
push eax
call fcn.004098f8
xor eax, eax
add esp, 0xc
lea edi, [esp + 0x2bc]
lea esi, [esp + 0x14]
mov byte [esp + 0x64], 0
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov word [esp + 0x81], ax
mov byte [esp + 0x83], al
call fcn.00408bb0
lea edi, [esp + 0x64]
call fcn.00408bb0
lea ecx, [esp + 0x2bc]
push ecx
push 0x40aef4
lea edx, [esp + 0xb4]
call fcn.004035e0
lea edx, [esp + 0xb4]
push edx
call fcn.00408190
add esp, 0xc
mov eax, edi
push eax
push 0x40aef4
lea edx, [esp + 0xb4]
call fcn.004035e0
lea ecx, [esp + 0xb4]
push ecx
call fcn.00408190
add esp, 0xc
lea esi, [esp + 0x2bc]
call fcn.00402e00
jmp 0x406307
push 6
push 0x40a2a0
push ebp
call ebx
add esp, 0xc
test eax, eax
jne 0x40615e
lea ecx, [esp + 0x64]
mov byte [esp + 0x8c], al
mov dword [esp + 0x8d], eax
mov dword [esp + 0x91], eax
mov dword [esp + 0x95], eax
mov dword [esp + 0x99], eax
mov dword [esp + 0x9d], eax
mov dword [esp + 0xa1], eax
mov dword [esp + 0xa5], eax
mov word [esp + 0xa9], ax
mov byte [esp + 0xab], al
mov byte [esp + 0x20], al
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov word [esp + 0x31], ax
mov byte [esp + 0x33], al
mov byte [esp + 0x58], al
mov dword [esp + 0x59], eax
mov word [esp + 0x5d], ax
mov byte [esp + 0x5f], al
call dword [0x40a0cc]
lea edx, [ebp + 6]
mov dword [esp + 0x6ec], 6
lea edi, [esp + 0x8c]
lea esi, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.00408bb0
lea edi, [esp + 0x20]
call fcn.00408bb0
lea edi, [esp + 0x58]
call fcn.00408bb0
lea ecx, [esp + 0x64]
call fcn.00408ac0
cmp dword [esp + 0x7c], 0x10
mov eax, dword [esp + 0x68]
jae 0x4060c4
lea eax, [esp + 0x68]
push eax
call dword [0x40a110]
mov esi, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x6f8]
sub esi, ebp
sub eax, esi
add esp, 4
cmp edi, eax
lea edx, [esp + 0xac]
lea eax, [esp + 0x20]
jne 0x406138
push eax
push 0x40af08
call fcn.004035e0
lea ecx, [esp + 0xb4]
push ecx
call fcn.00408190
mov edx, dword [esp + 0x28]
lea ebx, [edx + esi]
add esp, 0xc
lea esi, [esp + 0x20]
call fcn.00404250
mov esi, eax
push ebx
lea edx, [esi + 0x20]
mov ecx, edi
call fcn.00402d60
add esp, 4
mov dword [esi + 0xa0], eax
lea ecx, [esp + 0x64]
jmp 0x4062f6
push edi
push esi
push eax
push 0x40af24
call fcn.004035e0
lea ecx, [esp + 0xbc]
push ecx
call fcn.00408190
add esp, 0x14
lea ecx, [esp + 0x64]
jmp 0x4062f6
push 6
push 0x40a2e0
push ebp
call ebx
add esp, 0xc
test eax, eax
jne 0x406307
push 0x103
push eax
lea edx, [esp + 0x3cd]
push edx
mov byte [esp + 0x98], al
mov dword [esp + 0x99], eax
mov dword [esp + 0x9d], eax
mov dword [esp + 0xa1], eax
mov dword [esp + 0xa5], eax
mov dword [esp + 0xa9], eax
mov dword [esp + 0xad], eax
mov dword [esp + 0xb1], eax
mov word [esp + 0xb5], ax
mov byte [esp + 0xb7], al
mov byte [esp + 0x3d0], al
call fcn.004098f8
xor eax, eax
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 0
mov dword [esp + 0x59], eax
mov word [esp + 0x5d], ax
mov byte [esp + 0x5f], al
call dword [0x40a0cc]
lea eax, [ebp + 6]
mov dword [esp + 0x6ec], 7
lea edi, [esp + 0x8c]
lea esi, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.00408bb0
lea edi, [esp + 0x3c4]
call fcn.00408bb0
lea edi, [esp + 0x58]
call fcn.00408bb0
lea ecx, [esp + 0x3c]
call fcn.00408ac0
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x406244
lea eax, [esp + 0x40]
push eax
call dword [0x40a110]
mov esi, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x6f8]
sub esi, ebp
sub eax, esi
add esp, 4
cmp edi, eax
jne 0x4062c7
lea ecx, [esp + 0x3c4]
push ecx
push 0x40af54
lea edx, [esp + 0xb4]
call fcn.004035e0
lea edx, [esp + 0xb4]
push edx
call fcn.00408190
mov eax, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x3c4]
push ecx
push 0x40d438
push 0x40a46c
lea edx, [esp + 0x1c0]
add esi, eax
call fcn.004035e0
add esp, 0xc
push esi
mov ecx, edi
lea edx, [esp + 0x1b8]
call fcn.00402d60
add esp, 4
jmp 0x4062f2
push edi
push esi
lea edx, [esp + 0x3cc]
push edx
push 0x40af70
lea edx, [esp + 0x5e4]
call fcn.004035e0
lea eax, [esp + 0x5e4]
push eax
call fcn.00408190
add esp, 0x14
lea ecx, [esp + 0x3c]
mov dword [esp + 0x6ec], 0xffffffff
call dword [0x40a0d0]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x406319
push eax
call dword [0x40a0e4]
add esp, 4
mov ecx, dword [esp + 0x6e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c8]
xor ecx, esp
call fcn.00408f5e
add esp, 0x6dc
ret