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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f2c9
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x595be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040b230
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x2c], 2
jne 0x40d6f4
cmp dword [ebp - 0x28], 0
jne 0x40d6f4
mov eax, dword [ebp + 8]
add eax, 0x130
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040c340
mov ecx, dword [ebp - 0x10]
call fcn.0040b230
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
lea ecx, [ebp - 0x90]
call fcn.0040ef30
mov dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 3
jne 0x40d7c2
cmp dword [ebp - 0x28], 0
jne 0x40d7c2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x150
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x144]
push eax
mov ecx, dword [edx + 0x140]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040d1d0
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x7c], edx
cmp dword [ebp - 0x7c], 0
je 0x40d787
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.0040ef50
mov eax, dword [ebp - 0xb0]
jmp 0x40e0b1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x150]
add eax, dword [edx + 0x140]
mov ecx, dword [ecx + 0x154]
adc ecx, dword [edx + 0x144]
mov edx, dword [ebp + 8]
mov dword [edx + 0x150], eax
mov dword [edx + 0x154], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040b230
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
lea ecx, [ebp - 0x100]
call fcn.004059d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x114]
call fcn.00407420
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xec]
call fcn.00405750
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2c], 4
jne 0x40d88e
cmp dword [ebp - 0x28], 0
jne 0x40d88e
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp + 8]
add eax, 0x50
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x3c
push ecx
mov edx, dword [ebp + 8]
add edx, 0x28
push edx
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x148
push edx
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040cf20
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x148]
add eax, dword [edx + 0x140]
mov ecx, dword [ecx + 0x14c]
adc ecx, dword [edx + 0x144]
mov edx, dword [ebp + 8]
mov dword [edx + 0x148], eax
mov dword [edx + 0x14c], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040b230
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
jmp 0x40d90b
mov dword [ebp - 0x44], 0
jmp 0x40d8a0
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 8]
add ecx, 0x3c
call fcn.00401130
cmp dword [ebp - 0x44], eax
jge 0x40d90b
push 1
mov ecx, dword [ebp + 8]
add ecx, 0x50
call fcn.004034d0
mov ecx, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x3c
call fcn.00403740
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
call fcn.004063d0
push edx
push eax
lea ecx, [ebp - 0x100]
call fcn.00405900
mov edx, dword [ebp - 0x64]
movzx eax, byte [edx + 0x54]
push eax
lea ecx, [ebp - 0x114]
call fcn.00407450
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x50]
push edx
lea ecx, [ebp - 0xec]
call fcn.004034d0
jmp 0x40d897
mov ecx, dword [ebp + 8]
add ecx, 0x64
call fcn.0041f600
mov eax, dword [ebp - 0x2c]
or eax, dword [ebp - 0x28]
jne 0x40d972
mov dword [ebp - 0xa8], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xec]
call fcn.00402720
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x114]
call fcn.00402720
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
call fcn.00402720
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.0040ef50
mov eax, dword [ebp - 0xa8]
jmp 0x40e0b1
cmp dword [ebp - 0x2c], 5
jne 0x40d97e
cmp dword [ebp - 0x28], 0
je 0x40d983
call fcn.0040b910
mov ecx, dword [ebp - 0x10]
call fcn.0040b250
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x64
call fcn.0041f6e0
mov dword [ebp - 0x14], 0
jmp 0x40d9af
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jae 0x40d9fb
lea ecx, [ebp - 0x170]
call fcn.0040b0f0
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xb4], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xb4]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x64
call fcn.0040ee40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x170]
call fcn.0040ae60
jmp 0x40d9a6
push 0
push 9
mov ecx, dword [ebp + 8]
add ecx, 0x158
call fcn.00405900
mov ecx, dword [ebp + 8]
call fcn.004063a0
movzx eax, al
test eax, eax
jne 0x40da2e
push 0
push 6
mov ecx, dword [ebp + 8]
add ecx, 0x158
call fcn.00405900
cmp dword [ebp - 0x1c], 0
jbe 0x40da58
lea ecx, [ebp - 0xec]
call fcn.004063a0
movzx ecx, al
test ecx, ecx
jne 0x40da58
push 0
push 0xa
mov ecx, dword [ebp + 8]
add ecx, 0x158
call fcn.00405900
lea ecx, [ebp - 0xd8]
call fcn.00407420
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0xd8]
push eax
call fcn.0040b2f0
add esp, 8
lea ecx, [ebp - 0x13c]
call fcn.00407420
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x128]
call fcn.00407420
mov byte [ebp - 4], 7
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x10]
call fcn.0040b230
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 0x50]
or ecx, dword [ebp - 0x4c]
jne 0x40daba
jmp 0x40de9a
mov ecx, dword [ebp - 0x10]
call fcn.0040b230
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x98], ecx
mov byte [ebp - 0x16], 1
mov byte [ebp - 0x15], 1
cmp dword [ebp - 0x4c], 0
ja 0x40daee
cmp dword [ebp - 0x50], 0x40000000
jbe 0x40daf7
mov byte [ebp - 0x15], 0
jmp 0x40ddea
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
sub eax, 0xe
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xb
ja case.0x40db13.8
mov ecx, dword [ebp - 0x48]
jmp dword [ecx*4 + 0x40e0c4]
lea ecx, [ebp - 0xbc]
call fcn.0040b920
mov byte [ebp - 4], 8
lea edx, [ebp - 0x90]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040ba00
mov dword [ebp - 0x3c], 0
jmp 0x40db51
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp + 8]
add ecx, 0x64
call fcn.00401130
cmp dword [ebp - 0x3c], eax
jge 0x40db81
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x64
call fcn.00403740
add eax, 0x10
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
call fcn.0040bd90
jmp 0x40db48
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xbc]
call fcn.0040b940
jmp 0x40ddea
lea ecx, [ebp - 0x150]
call fcn.00407420
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x150]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x64
call fcn.00401130
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040d080
lea ecx, [ebp - 0xc4]
call fcn.0040b920
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x90]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0040ba00
mov dword [ebp - 0x14], 0
jmp 0x40dbf6
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x1c]
jae 0x40dc42
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x64
call fcn.00403740
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x150]
call fcn.004074a0
mov edx, dword [ebp - 0x58]
mov al, byte [eax]
mov byte [edx + 0x1f], al
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x1f]
test edx, edx
je 0x40dc40
mov ecx, dword [ebp - 0x10]
call fcn.0040b270
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 8], eax
jmp 0x40dbed
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc4]
call fcn.0040b940
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x150]
call fcn.00402720
jmp 0x40ddea
lea edx, [ebp - 0xd8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040cff0
mov dword [ebp - 0x14], 0
jmp 0x40dc8a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xd8]
call fcn.00401130
cmp dword [ebp - 0x14], eax
jae 0x40dcbb
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0xd8]
call fcn.004074a0
movzx eax, byte [eax]
test eax, eax
je 0x40dcb9
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
jmp 0x40dc81
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x13c]
push eax
call fcn.0040b2f0
add esp, 8
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x128]
push edx
call fcn.0040b2f0
add esp, 8
jmp 0x40ddea
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040cff0
jmp 0x40ddea
lea edx, [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040cff0
jmp 0x40ddea
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xf0
push edx
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040d0f0
jmp 0x40ddea
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x78
push edx
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040d0f0
jmp 0x40ddea
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xa0
push edx
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040d0f0
jmp 0x40ddea
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xc8
push edx
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040d0f0
jmp 0x40ddea
xorpd xmm0, xmm0
movlpd qword [ebp - 0x6c], xmm0
jmp 0x40ddb2
mov ecx, dword [ebp - 0x6c]
add ecx, 1
mov edx, dword [ebp - 0x68]
adc edx, 0
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x5c]
ja 0x40ddda
jb 0x40ddc4
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp - 0x60]
jae 0x40ddda
mov ecx, dword [ebp - 0x10]
call fcn.0040b210
movzx edx, al
test edx, edx
je 0x40ddd8
call fcn.0040b910
jmp 0x40dda0
mov byte [ebp - 0x16], 0
jmp 0x40ddea
mov byte [ebp - 0x15], 0
mov al, byte [ebp - 0x15]
mov byte [ebp - 0x16], al
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x40de12
movzx edx, byte [ebp - 0x16]
test edx, edx
je 0x40de10
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x158
call fcn.00405900
jmp 0x40de22
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040b2b0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x130]
test edx, edx
jg 0x40de48
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x131]
cmp ecx, 2
jg 0x40de48
mov dword [ebp - 0x70], 0
jmp 0x40de4f
mov dword [ebp - 0x70], 1
mov dl, byte [ebp - 0x70]
mov byte [ebp - 0x31], dl
movzx eax, byte [ebp - 0x31]
test eax, eax
je 0x40de95
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 8]
sub eax, dword [ebp - 0x98]
xor ecx, ecx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0xa4]
cmp edx, dword [ebp - 0x60]
jne 0x40de90
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0x5c]
je 0x40de95
call fcn.0040b910
jmp 0x40da9f
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x14], 0
jmp 0x40dec1
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x30]
jae 0x40deea
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x128]
call fcn.004074a0
movzx ecx, byte [eax]
test ecx, ecx
je 0x40dee8
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
jmp 0x40deb8
mov dword [ebp - 0x14], 0
jmp 0x40defc
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x1c]
jae 0x40e035
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x64
call fcn.00403740
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0xd8]
call fcn.004074a0
movzx ecx, byte [eax]
test ecx, ecx
jne 0x40df39
mov dword [ebp - 0x74], 1
jmp 0x40df40
mov dword [ebp - 0x74], 0
mov edx, dword [ebp - 0x24]
mov al, byte [ebp - 0x74]
mov byte [edx + 0x1c], al
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx + 0x1c]
test edx, edx
je 0x40dfb4
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x1d], 0
mov byte [ebp - 0x1d], 0
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x100]
call fcn.00405950
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
mov dword [edx], ecx
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0xec]
call fcn.00403520
mov edx, dword [ebp - 0x24]
mov eax, dword [eax]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x114]
call fcn.004074a0
mov edx, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [edx + 0x1e], al
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
jmp 0x40e017
mov edx, dword [ebp - 0x40]
push edx
lea ecx, [ebp - 0x13c]
call fcn.004074a0
movzx eax, byte [eax]
test eax, eax
jne 0x40dfd3
mov dword [ebp - 0x78], 1
jmp 0x40dfda
mov dword [ebp - 0x78], 0
mov ecx, dword [ebp - 0x24]
mov dl, byte [ebp - 0x78]
mov byte [ecx + 0x1d], dl
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x128]
call fcn.004074a0
mov cl, byte [eax]
mov byte [ebp - 0x1d], cl
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x24]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x24]
mov byte [ecx + 0x1e], 0
cmp dword [ebp - 0x54], 0
je 0x40e030
movzx edx, byte [ebp - 0x1d]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x118
call fcn.00407450
jmp 0x40def3
mov dword [ebp - 0x9c], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x128]
call fcn.00402720
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x13c]
call fcn.00402720
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd8]
call fcn.00402720
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xec]
call fcn.00402720
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x114]
call fcn.00402720
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
call fcn.00402720
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.0040ef50
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc