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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4178a8
mov eax, dword fs:[0]
push eax
sub esp, 0x164
push ebx
push ebp
push esi
push edi
mov eax, dword [0x829618]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x68], ebp
xor esi, esi
mov dword [esp + 0x64], esi
mov ebx, dword [0x41a350]
push 0xffffffffffffffff
push 0x41b24c
call ebx
mov dword [esp + 0x5c], eax
mov eax, dword [0x41a304]
mov dword [esp + 0x188], esi
mov dword [esp + 0x48], eax
mov ecx, 1
lock xadd dword [eax], ecx
push 0xffffffffffffffff
push 0x41b18c
mov byte [esp + 0x190], 1
call ebx
add esp, 0x10
mov dword [esp + 0x84], eax
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x184], 2
call fcn.00401c20
push ebp
lea ecx, [esp + 0x44]
call fcn.00401c20
mov eax, dword [esp + 0x84]
mov byte [esp + 0x180], 1
or ecx, 0xffffffff
lock xadd dword [eax], ecx
mov edi, dword [0x41a358]
jne 0x407b94
mov edx, dword [esp + 0x84]
push edx
call edi
add esp, 4
push esi
lea ecx, [esp + 0x5c]
call dword [0x41a1f8]
push esi
lea ecx, [esp + 0x5c]
mov byte [esp + 0x184], 3
call dword [0x41a1fc]
push ecx
mov eax, esp
mov dword [eax], 3
mov dword [esp + 0x4c], esp
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x64]
call dword [0x41a200]
push 0x7530
lea ecx, [esp + 0x5c]
call dword [0x41a204]
test al, al
jne 0x407ca7
lea edx, [esp + 0x124]
push edx
call dword [0x41a2a4]
add esp, 4
push 0x41b0b8
mov ecx, eax
mov byte [esp + 0x184], 4
call dword [0x41a2a8]
lea ecx, [esp + 0x124]
mov byte [esp + 0x180], 3
call dword [0x41a2b8]
lea ecx, [esp + 0x58]
mov byte [esp + 0x180], 1
call dword [0x41a23c]
mov eax, dword [esp + 0x40]
mov byte [esp + 0x180], 0
cmp eax, esi
je 0x407c7f
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x407c7f
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0xc]
lea ecx, [eax + edx*4 + 0x14]
mov edx, dword [eax + 8]
mov esi, eax
push ecx
lea eax, [eax + edx*4 + 0x14]
push eax
lea ecx, [esp + 0x48]
call fcn.00401510
mov ecx, dword [esi]
test ecx, ecx
jne 0x407c7f
push esi
call dword [0x41a2f0]
add esp, 4
mov edx, dword [esp + 0x54]
mov dword [esp + 0x180], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x408fb4
mov ecx, dword [esp + 0x54]
push ecx
call edi
jmp 0x408fb1
mov esi, dword [0x41a20c]
push 0x1f4
lea ecx, [esp + 0x5c]
call esi
test al, al
jne 0x407d17
mov edi, dword [0x41a210]
lea ecx, [esp + 0x58]
call edi
cmp eax, 2
jne 0x407d17
lea edx, [esp + 0x130]
push edx
call dword [0x41a2a4]
add esp, 4
push 0x41b240
mov ecx, eax
mov byte [esp + 0x184], 5
call dword [0x41a2a8]
lea ecx, [esp + 0x130]
mov byte [esp + 0x180], 3
call dword [0x41a2b8]
push 0x1f4
lea ecx, [esp + 0x5c]
call esi
test al, al
je 0x407cc2
lea ecx, [esp + 0x58]
call dword [0x41a230]
cmp eax, 1
jne 0x407d99
lea eax, [esp + 0x138]
push eax
call dword [0x41a2a4]
add esp, 4
push 0x41b0ec
mov ecx, eax
mov byte [esp + 0x184], 6
call dword [0x41a2a8]
lea ecx, [esp + 0x138]
mov byte [esp + 0x180], 3
call dword [0x41a2b8]
lea ecx, [esp + 0x40]
push ecx
push ecx
mov edx, esp
mov dword [esp + 0x50], esp
push edx
call dword [0x41a2a4]
lea eax, [esp + 0x14c]
add esp, 4
push eax
call fcn.00405220
add esp, 0xc
lea ecx, [esp + 0x140]
call dword [0x41a2b8]
jmp 0x407f6e
mov edi, dword [0x41a234]
lea ecx, [esp + 0x58]
call edi
cmp eax, 1
je 0x407fee
lea ecx, [esp + 0x12c]
push ecx
call dword [0x41a2a4]
add esp, 4
mov esi, eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x180], 7
call edi
push 0x41b0d8
mov ecx, esi
mov edi, eax
call dword [0x41a2a8]
mov esi, eax
mov ecx, dword [esi]
push edi
call dword [0x41a2b0]
push 0x41b0d4
mov ecx, esi
call dword [0x41a1d4]
mov ecx, eax
call dword [0x41a2a8]
lea ecx, [esp + 0x12c]
mov byte [esp + 0x180], 3
call dword [0x41a2b8]
lea edx, [esp + 0x40]
push edx
push ecx
mov eax, esp
mov dword [esp + 0x50], esp
push eax
call dword [0x41a2a4]
lea ecx, [esp + 0x148]
add esp, 4
push ecx
call fcn.00405220
add esp, 0xc
lea ecx, [esp + 0x13c]
call dword [0x41a2b8]
lea edx, [esp + 0x118]
push edx
lea ecx, [esp + 0x5c]
call dword [0x41a228]
mov esi, eax
lea eax, [esp + 0x134]
mov bl, 8
push eax
mov byte [esp + 0x184], bl
call dword [0x41a2a4]
add esp, 4
mov edi, eax
mov ecx, dword [edi]
push 0x22
push esi
mov esi, dword [0x41a2b4]
push 0x22
mov byte [esp + 0x18c], 9
call esi
mov ebp, dword [0x41a1c0]
mov ecx, eax
call ebp
mov ecx, eax
call esi
mov ecx, edi
call dword [0x41a1d4]
lea ecx, [esp + 0x134]
mov byte [esp + 0x180], bl
call dword [0x41a2b8]
mov ecx, dword [esp + 0x118]
mov byte [esp + 0x180], 3
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x407ee0
mov eax, dword [esp + 0x118]
push eax
call dword [0x41a2f0]
add esp, 4
lea ecx, [esp + 0xe0]
push ecx
lea ecx, [esp + 0x5c]
call dword [0x41a1c4]
mov ebx, eax
lea edx, [esp + 0x128]
push edx
mov byte [esp + 0x184], 0xa
call dword [0x41a2a4]
add esp, 4
mov edi, eax
mov ecx, dword [edi]
push 0x22
push ebx
push 0x22
mov byte [esp + 0x18c], 0xb
call esi
mov ecx, eax
call ebp
mov ecx, eax
call esi
mov ecx, edi
call dword [0x41a1d4]
lea ecx, [esp + 0x128]
mov byte [esp + 0x180], 0xa
call dword [0x41a2b8]
mov eax, dword [esp + 0xe0]
mov byte [esp + 0x180], 3
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x407f6e
mov edx, dword [esp + 0xe0]
push edx
call dword [0x41a2f0]
add esp, 4
lea ecx, [esp + 0x58]
mov byte [esp + 0x180], 1
call dword [0x41a23c]
mov eax, dword [esp + 0x40]
mov byte [esp + 0x180], 0
test eax, eax
je 0x407fc8
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x407fc8
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0xc]
lea ecx, [eax + edx*4 + 0x14]
mov edx, dword [eax + 8]
mov esi, eax
push ecx
lea eax, [eax + edx*4 + 0x14]
push eax
lea ecx, [esp + 0x48]
call fcn.00401510
mov ecx, dword [esi]
test ecx, ecx
jne 0x407fc8
push esi
call dword [0x41a2f0]
add esp, 4
mov edx, dword [esp + 0x54]
mov dword [esp + 0x180], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x408fb4
mov ecx, dword [esp + 0x54]
push ecx
jmp 0x408fab
push 0xffffffffffffffff
push 0x41b14c
call ebx
add esp, 8
mov dword [esp + 0xc4], eax
lea edx, [esp + 0xf4]
push edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x184], 0xc
call dword [0x41a228]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x128]
push ecx
mov byte [esp + 0x18c], 0xd
call dword [0x41a218]
add esp, 0xc
mov edi, dword [0x41a2a0]
push 1
push 0
lea edx, [esp + 0xcc]
push edx
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
mov byte [esp + 0x190], 0xe
call edi
mov edx, dword [esp + 0x120]
mov byte [esp + 0x180], 0x10
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x408088
mov ecx, dword [esp + 0x120]
push ecx
call dword [0x41a358]
add esp, 4
mov edx, dword [esp + 0xf4]
mov byte [esp + 0x180], 0x11
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4080b1
mov ecx, dword [esp + 0xf4]
push ecx
call dword [0x41a2f0]
add esp, 4
mov edx, dword [esp + 0xc4]
mov byte [esp + 0x180], 0x12
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4080da
mov ecx, dword [esp + 0xc4]
push ecx
call dword [0x41a358]
add esp, 4
push 0xffffffffffffffff
push 0x41b230
call ebx
add esp, 8
mov dword [esp + 0x8c], eax
mov esi, dword [0x41a208]
push 0
push 1
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0xf4]
mov byte [esp + 0x18c], 0x13
call esi
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x180], 0x15
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x408139
mov edx, dword [esp + 0x8c]
push edx
call dword [0x41a358]
add esp, 4
push 0xffffffffffffffff
push 0x41b220
call ebx
add esp, 8
mov dword [esp + 0xb4], eax
push 0
push 1
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xf0]
mov byte [esp + 0x18c], 0x16
call esi
mov ecx, dword [esp + 0xb4]
mov byte [esp + 0x180], 0x18
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x408192
mov eax, dword [esp + 0xb4]
push eax
call dword [0x41a358]
add esp, 4
push 0xffffffffffffffff
push 0x41b208
call ebx
add esp, 8
mov dword [esp + 0x94], eax
push 0
push 1
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x104]
mov byte [esp + 0x18c], 0x19
call esi
mov edx, dword [esp + 0x94]
mov esi, dword [0x41a358]
mov byte [esp + 0x180], 0x1b
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4081ed
mov ecx, dword [esp + 0x94]
push ecx
call esi
add esp, 4
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 8]
mov dword [esp + 0x6c], 0
test edx, edx
jle 0x4083b5
mov eax, dword [eax]
cmp eax, 1
je 0x40821f
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 4]
push edx
lea ecx, [esp + 0x54]
call fcn.004018f0
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 8]
add ecx, dword [esp + 0x6c]
lea edx, [eax + ecx*4 + 0x14]
push edx
lea ecx, [esp + 0x50]
call dword [0x41a360]
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0xa7]
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x188], 0x1c
call dword [0x41a21c]
movzx edx, byte [eax]
neg edx
sbb edx, edx
test eax, edx
je 0x4084b9
push 0xffffffffffffffff
push 0x41b204
call ebx
add esp, 8
mov dword [esp + 0xd8], eax
push 1
push 0
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x190], 0x1d
call edi
mov edx, dword [esp + 0xd8]
mov byte [esp + 0x180], 0x1f
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4082c1
mov ecx, dword [esp + 0xd8]
push ecx
call esi
add esp, 4
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
cmp eax, 1
je 0x4082dd
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 4]
push edx
lea ecx, [esp + 0x64]
call fcn.004018f0
lea eax, [esp + 0x100]
push eax
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 8]
lea ecx, [eax + ecx*4 + 0x18]
call dword [0x41a1ec]
push eax
lea ecx, [ebp + 0x18]
mov byte [esp + 0x184], 0x20
call dword [0x41a2d0]
mov edx, dword [esp + 0x100]
mov byte [esp + 0x180], 0x1f
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x40832d
mov ecx, dword [esp + 0x100]
push ecx
call esi
add esp, 4
mov eax, dword [esp + 0x60]
mov byte [esp + 0x180], 0x1c
test eax, eax
je 0x40837b
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x40837b
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0xc]
lea edx, [eax + ecx*4 + 0x14]
mov ecx, dword [eax + 8]
push edx
lea edx, [eax + ecx*4 + 0x14]
push edx
lea ecx, [esp + 0x68]
mov esi, eax
call fcn.00401510
mov eax, dword [esi]
test eax, eax
jne 0x408375
push esi
call dword [0x41a2f0]
add esp, 4
mov esi, dword [0x41a358]
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x180], 0x1b
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40839a
mov edx, dword [esp + 0x4c]
push edx
call esi
add esp, 4
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x6c]
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 8]
inc ecx
cmp ecx, edx
mov dword [esp + 0x6c], ecx
jl 0x408207
push ebp
lea ecx, [esp + 0xf4]
call dword [0x41a1e4]
lea ecx, [esp + 0xf0]
mov byte [esp + 0x180], 0x35
call dword [0x41a1c8]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], edx
test edx, edx
jg 0x408de0
jl 0x4083fb
cmp eax, 0x400
jae 0x408c28
mov byte [esp + 0x48], 0x20
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x82]
call dword [0x41a34c]
push 0xffffffffffffffff
push 0x41b200
call ebx
add esp, 8
mov dword [esp + 0xa8], eax
fild qword [esp + 0xcc]
lea ecx, [esp + 0x7e]
push ecx
push 2
push 0x66
push 0
sub esp, 8
lea edx, [esp + 0x114]
fstp qword [esp]
mov bl, 0x36
push edx
lea ecx, [esp + 0xc4]
mov byte [esp + 0x19c], bl
call dword [0x41a1cc]
push eax
lea ecx, [ebp + 0x1c]
mov byte [esp + 0x184], 0x37
call dword [0x41a2d0]
mov eax, dword [esp + 0xfc]
mov byte [esp + 0x180], bl
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x408491
mov edx, dword [esp + 0xfc]
push edx
call esi
add esp, 4
mov eax, dword [esp + 0xa8]
mov byte [esp + 0x180], 0x35
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x408e9e
mov edx, dword [esp + 0xa8]
jmp 0x408e98
lea ecx, [esp + 0xe4]
push ecx
lea edx, [esp + 0xce]
push edx
lea ecx, [esp + 0x54]
call dword [0x41a21c]
movzx ecx, byte [eax]
neg ecx
sbb ecx, ecx
test eax, ecx
je 0x408a9d
push 0xffffffffffffffff
push 0x41b204
call ebx
add esp, 8
mov dword [esp + 0x9c], eax
push 1
push 0
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x190], 0x21
call edi
mov ecx, dword [esp + 0x9c]
mov byte [esp + 0x180], 0x23
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x408539
mov eax, dword [esp + 0x9c]
push eax
call esi
add esp, 4
push 0xffffffffffffffff
push 0x41b1f4
call ebx
add esp, 8
mov dword [esp + 0xbc], eax
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov byte [esp + 0x180], 0x24
cmp edx, 1
je 0x408570
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004018f0
push 1
push 0
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 8]
lea ecx, [eax + ecx*4 + 0x14]
call edi
mov edx, dword [esp + 0xbc]
mov byte [esp + 0x180], 0x26
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4085b3
mov ecx, dword [esp + 0xbc]
push ecx
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 8]
cmp edx, 1
jle 0x40862a
mov eax, dword [eax]
cmp eax, 1
je 0x4085da
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 4]
push edx
lea ecx, [esp + 0x40]
call fcn.004018f0
lea eax, [esp + 0xec]
push eax
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 8]
lea ecx, [eax + ecx*4 + 0x18]
call dword [0x41a1ec]
push eax
lea ecx, [ebp + 0x10]
mov byte [esp + 0x184], 0x27
call dword [0x41a2d0]
mov edx, dword [esp + 0xec]
mov byte [esp + 0x180], 0x26
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x40862a
mov ecx, dword [esp + 0xec]
push ecx
call esi
add esp, 4
push 0xffffffffffffffff
push 0x41b1f0
call ebx
add esp, 8
mov dword [esp + 0xa4], eax
push 1
push 0
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [ebp + 0x10]
mov byte [esp + 0x190], 0x28
call edi
mov ecx, dword [esp + 0xa4]
mov byte [esp + 0x180], 0x2a
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x408680
mov eax, dword [esp + 0xa4]
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 0xc]
sub edx, dword [ecx + 8]
cmp edx, 2
jle 0x408758
mov eax, dword [ecx]
cmp eax, 1
je 0x4086ab
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 4]
push edx
lea ecx, [esp + 0x48]
call fcn.004018f0
mov eax, dword [esp + 0x44]
mov edx, dword [eax]
mov ecx, dword [eax + 8]
lea esi, [eax + ecx*4 + 0x14]
cmp edx, 1
je 0x4086ce
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x48]
call fcn.004018f0
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 8]
lea ebp, [eax + edx*4 + 0x18]
mov eax, dword [eax]
cmp eax, 1
je 0x4086f1
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 4]
push edx
lea ecx, [esp + 0x48]
call fcn.004018f0
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 8]
push 0xa
lea edi, [eax + ecx*4 + 0x1c]
push 0
mov ecx, esi
call dword [0x41a1d0]
mov esi, eax
shl esi, 4
sub esi, eax
push 0xa
add esi, esi
push 0
mov ecx, ebp
add esi, esi
call dword [0x41a1d0]
add eax, esi
mov esi, eax
shl esi, 4
sub esi, eax
add esi, esi
push 0
mov ecx, edi
add esi, esi
call dword [0x41a220]
call fcn.00415780
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x44]
mov edi, dword [0x41a2a0]
add eax, esi
mov esi, dword [0x41a358]
mov dword [edx + 0x14], eax
mov ebp, edx
jmp 0x40875f
mov dword [ebp + 0x14], 0
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 8]
mov dword [esp + 0x80], 1
cmp edx, 1
jle 0x4089b8
push 0xffffffffffffffff
push 0x41b1f0
call dword [0x41a350]
add esp, 8
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov byte [esp + 0x180], 0x2b
cmp ecx, 1
je 0x4087b5
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0x3c]
call fcn.004018f0
mov eax, dword [esp + 0x38]
push 1
push 0
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [eax + 8]
add ecx, dword [esp + 0x8c]
lea edx, [esp + 0x7c]
push edx
lea ecx, [eax + ecx*4 + 0x14]
call dword [0x41a2a0]
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x184], 0x2c
call fcn.00401dc0
mov eax, dword [esp + 0x70]
mov byte [esp + 0x180], 0x2b
test eax, eax
je 0x408838
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x408838
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0xc]
lea edx, [eax + ecx*4 + 0x14]
mov ecx, dword [eax + 8]
push edx
lea edx, [eax + ecx*4 + 0x14]
push edx
lea ecx, [esp + 0x78]
mov esi, eax
call fcn.00401510
mov eax, dword [esi]
test eax, eax
jne 0x408838
push esi
call dword [0x41a2f0]
add esp, 4
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x180], 0x2a
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x40885b
mov eax, dword [esp + 0x78]
push eax
call dword [0x41a358]
add esp, 4
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
cmp ecx, 1
jle 0x4088cb
mov edx, dword [eax]
cmp edx, 1
je 0x408882
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x40]
call fcn.004018f0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 8]
lea edx, [esp + 0x108]
push edx
lea ecx, [eax + ecx*4 + 0x14]
call dword [0x41a1ec]
or dword [esp + 0x64], 1
lea edx, [esp + 0xcc]
push edx
mov ecx, eax
mov byte [esp + 0x184], 0x2d
mov dword [esp + 0xd0], 0x41b1e8
call dword [0x41a2c0]
test al, al
je 0x4088cb
mov bl, 1
jmp 0x4088cd
xor bl, bl
test byte [esp + 0x64], 1
mov dword [esp + 0x180], 0x2a
je 0x408905
and dword [esp + 0x64], 0xfffffffe
mov eax, dword [esp + 0x108]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x408905
mov edx, dword [esp + 0x108]
push edx
call dword [0x41a358]
add esp, 4
test bl, bl
je 0x40897d
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
cmp ecx, 1
je 0x408925
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0x40]
call fcn.004018f0
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x110]
push ecx
lea ecx, [eax + edx*4 + 0x18]
call dword [0x41a1ec]
mov ecx, dword [esp + 0x68]
push eax
add ecx, 0x24
mov byte [esp + 0x184], 0x2e
call dword [0x41a2d0]
mov eax, dword [esp + 0x110]
mov byte [esp + 0x180], 0x2a
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40897d
mov edx, dword [esp + 0x110]
push edx
call dword [0x41a358]
add esp, 4
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x80]
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 8]
inc ecx
cmp ecx, edx
mov dword [esp + 0x80], ecx
jl 0x40877d
mov ecx, dword [esp + 0x44]
mov ebx, dword [0x41a350]
mov ebp, dword [esp + 0x68]
mov edi, dword [0x41a2a0]
mov esi, dword [0x41a358]
mov byte [esp + 0x180], 0x26
test ecx, ecx
je 0x408a06
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x408a02
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0xc]
lea edx, [eax + ecx*4 + 0x14]
mov ecx, dword [eax + 8]
push edx
lea edx, [eax + ecx*4 + 0x14]
push edx
lea ecx, [esp + 0x4c]
mov esi, eax
call fcn.00401510
mov eax, dword [esi]
test eax, eax
jne 0x4089fc
push esi
call dword [0x41a2f0]
add esp, 4
mov esi, dword [0x41a358]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x180], 0x23
test ecx, ecx
je 0x408a58
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x408a54
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0xc]
lea edx, [eax + ecx*4 + 0x14]
mov ecx, dword [eax + 8]
push edx
lea edx, [eax + ecx*4 + 0x14]
push edx
lea ecx, [esp + 0x44]
mov esi, eax
call fcn.00401510
mov eax, dword [esi]
test eax, eax
jne 0x408a4e
push esi
call dword [0x41a2f0]
add esp, 4
mov esi, dword [0x41a358]
mov eax, dword [esp + 0x38]
mov byte [esp + 0x180], 0x1c
test eax, eax
je 0x40837b
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40837b
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0xc]
lea ecx, [eax + edx*4 + 0x14]
mov edx, dword [eax + 8]
mov esi, eax
push ecx
lea eax, [eax + edx*4 + 0x14]
push eax
lea ecx, [esp + 0x40]
call fcn.00401510
mov ecx, dword [esi]
test ecx, ecx
jmp 0x408369
cmp byte [0x829004], 0
je 0x40837b
lea edx, [esp + 0xf8]
push edx
lea eax, [esp + 0xcf]
push eax
lea ecx, [esp + 0x54]
call dword [0x41a21c]
movzx ecx, byte [eax]
neg ecx
sbb ecx, ecx
test eax, ecx
je 0x40837b
push 0xffffffffffffffff
push 0x41b204
call ebx
add esp, 8
mov dword [esp + 0x88], eax
push 1
push 0
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x190], 0x2f
call edi
mov ecx, dword [esp + 0x88]
mov byte [esp + 0x180], 0x31
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x408b2d
mov eax, dword [esp + 0x88]
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
cmp ecx, 2
jle 0x408c0f
push 0xffffffffffffffff
push 0x41b188
call ebx
add esp, 8
mov dword [esp + 0x90], eax
lea edx, [esp + 0x10c]
push edx
push 2
lea ecx, [esp + 0xa0]
mov byte [esp + 0x188], 0x32
call fcn.00401e30
mov ecx, eax
call dword [0x41a1ec]
push 1
push 0
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x54]
push edx
mov ecx, eax
mov byte [esp + 0x190], 0x33
call edi
push 0
mov ecx, eax
mov byte [esp + 0x184], 0x34
call fcn.00401e30
push eax
lea ecx, [ebp + 0x20]
call dword [0x41a2d0]
lea ecx, [esp + 0x48]
mov byte [esp + 0x180], 0x33
call fcn.00401a80
mov eax, dword [esp + 0x10c]
mov byte [esp + 0x180], 0x32
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x408bea
mov edx, dword [esp + 0x10c]
push edx
call esi
add esp, 4
mov eax, dword [esp + 0x90]
mov byte [esp + 0x180], 0x31
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x408c0f
mov edx, dword [esp + 0x90]
push edx
call esi
add esp, 4
lea ecx, [esp + 0x98]
mov byte [esp + 0x180], 0x1c
call fcn.00401a80
jmp 0x40837b
test edx, edx
jg 0x408de0
jl 0x408c3d
cmp eax, 0x100000
jae 0x408d04
mov byte [esp + 0x48], 0x20
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0xb2]
call dword [0x41a34c]
push 0xffffffffffffffff
push 0x41b1e0
call ebx
add esp, 8
mov dword [esp + 0xb0], eax
fild qword [esp + 0xcc]
lea ecx, [esp + 0xae]
push ecx
fmul qword [0x41b1d8]
push 2
push 0x66
push 0
sub esp, 8
lea edx, [esp + 0x134]
fstp qword [esp]
mov bl, 0x38
push edx
lea ecx, [esp + 0xcc]
mov byte [esp + 0x19c], bl
call dword [0x41a1cc]
push eax
lea ecx, [ebp + 0x1c]
mov byte [esp + 0x184], 0x39
call dword [0x41a2d0]
mov eax, dword [esp + 0x11c]
mov byte [esp + 0x180], bl
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x408cdc
mov edx, dword [esp + 0x11c]
push edx
call esi
add esp, 4
mov eax, dword [esp + 0xb0]
mov byte [esp + 0x180], 0x35
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x408e9e
mov edx, dword [esp + 0xb0]
jmp 0x408e98
test edx, edx
jg 0x408de0
jl 0x408d19
cmp eax, 0x40000000
jae 0x408de0
mov byte [esp + 0x48], 0x20
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0xe2]
call dword [0x41a34c]
push 0xffffffffffffffff
push 0x41b1d0
call ebx
add esp, 8
mov dword [esp + 0xb8], eax
fild qword [esp + 0xcc]
lea ecx, [esp + 0xde]
push ecx
fmul qword [0x41b1c8]
push 2
push 0x66
push 0
sub esp, 8
lea edx, [esp + 0x11c]
fstp qword [esp]
mov bl, 0x3a
push edx
lea ecx, [esp + 0xd4]
mov byte [esp + 0x19c], bl
call dword [0x41a1cc]
push eax
lea ecx, [ebp + 0x1c]
mov byte [esp + 0x184], 0x3b
call dword [0x41a2d0]
mov eax, dword [esp + 0x104]
mov byte [esp + 0x180], bl
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x408db8
mov edx, dword [esp + 0x104]
push edx
call esi
add esp, 4
mov eax, dword [esp + 0xb8]
mov byte [esp + 0x180], 0x35
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x408e9e
mov edx, dword [esp + 0xb8]
jmp 0x408e98
mov byte [esp + 0x48], 0x20
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x7a]
call dword [0x41a34c]
push 0xffffffffffffffff
push 0x41b1c0
call ebx
add esp, 8
mov dword [esp + 0xc0], eax
fild qword [esp + 0xcc]
lea ecx, [esp + 0x76]
push ecx
fmul qword [0x41b1d8]
push 2
push 0x66
push 0
sub esp, 8
lea edx, [esp + 0x12c]
fstp qword [esp]
mov bl, 0x3c
push edx
lea ecx, [esp + 0xdc]
mov byte [esp + 0x19c], bl
call dword [0x41a1cc]
push eax
lea ecx, [ebp + 0x1c]
mov byte [esp + 0x184], 0x3d
call dword [0x41a2d0]
mov eax, dword [esp + 0x114]
mov byte [esp + 0x180], bl
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x408e79
mov edx, dword [esp + 0x114]
push edx
call esi
add esp, 4
mov eax, dword [esp + 0xc0]
mov byte [esp + 0x180], 0x35
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x408e9e
mov edx, dword [esp + 0xc0]
push edx
call esi
add esp, 4
lea ecx, [esp + 0xf0]
mov byte [esp + 0x180], 0x1b
call dword [0x41a240]
mov esi, dword [0x41a238]
lea ecx, [esp + 0xf8]
mov byte [esp + 0x180], 0x18
call esi
lea ecx, [esp + 0xe4]
mov byte [esp + 0x180], 0x15
call esi
lea ecx, [esp + 0xe8]
mov byte [esp + 0x180], 0x12
call esi
mov eax, dword [esp + 0x50]
mov byte [esp + 0x180], 3
test eax, eax
je 0x408f34
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x408f34
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 0xc]
lea ecx, [eax + edx*4 + 0x14]
mov edx, dword [eax + 8]
mov esi, eax
push ecx
lea eax, [eax + edx*4 + 0x14]
push eax
lea ecx, [esp + 0x58]
call fcn.00401510
mov ecx, dword [esi]
test ecx, ecx
jne 0x408f34
push esi
call dword [0x41a2f0]
add esp, 4
lea ecx, [esp + 0x58]
mov byte [esp + 0x180], 1
call dword [0x41a23c]
mov eax, dword [esp + 0x40]
mov byte [esp + 0x180], 0
test eax, eax
je 0x408f8e
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x408f8e
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0xc]
lea edx, [eax + ecx*4 + 0x14]
mov ecx, dword [eax + 8]
push edx
lea edx, [eax + ecx*4 + 0x14]
push edx
lea ecx, [esp + 0x48]
mov esi, eax
call fcn.00401510
mov eax, dword [esi]
test eax, eax
jne 0x408f8e
push esi
call dword [0x41a2f0]
add esp, 4
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x180], 0xffffffff
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x408fb4
mov eax, dword [esp + 0x54]
push eax
call dword [0x41a358]
add esp, 4
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret