Function at 0x412d10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x412d18
push ecx
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
lea ebx, [ebp - 4]
xor eax, eax
push ebp
push 0x414e8f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [esi + 0xc], eax
mov eax, dword [ebx]
cmp byte [eax + 0x58], 0
jne 0x412d55
mov eax, dword [ebx]
cmp byte [eax + 0x140], 0
je 0x414e5c
push ebp
push 0x414e52
push dword fs:[0]
mov dword fs:[0], esp
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 8]
call fcn.0040ced4
cmp ax, 1
jne 0x4141e9
mov eax, dword [ebx]
cmp dword [eax + 0x54], 0
jle 0x412db1
push 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c4]
push eax
call fcn.004072bc
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x54]
push eax
push 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c4]
push eax
call fcn.004073d4
mov eax, dword [ebx]
cmp dword [eax + 0x21c], 6
jne 0x412f6b
mov eax, dword [ebx]
cmp byte [eax + 0x70], 0
jne 0x412f6b
push 0
push 0x1000
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call fcn.0040cf38
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x412df4
mov dword [esi + 0xc], 1
mov eax, dword [ebp - 8]
add dword [0x479848], eax
cmp dword [ebp - 8], 0
jle 0x412e69
mov edx, 0x414ea0
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
call fcn.0040a6c8
test al, al
je 0x412e69
mov eax, dword [ebx]
mov byte [eax + 0x70], 1
push 0
push 0x414eb8
mov eax, dword [ebx]
push dword [eax + 0x24]
push 0x414ec8
lea edx, [ebp - 0xd8]
mov eax, dword [ebx]
call fcn.0040ecdc
push dword [ebp - 0xd8]
push 0x414eec
lea eax, [ebp - 0xd4]
mov edx, 5
call fcn.00404a40
mov edx, dword [ebp - 0xd4]
xor ecx, ecx
mov eax, dword [ebx]
call fcn.0040f940
jmp 0x412f5e
mov eax, dword [ebx]
add eax, 0x1b8
mov edx, 0x414ef8
call fcn.00404714
mov byte [ebp - 0x59], 0
mov eax, dword [ebx]
mov dword [eax + 0x1bc], 0x1f4
push 2
mov eax, dword [ebx]
mov edx, dword [eax + 0x1b8]
mov ecx, 3
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
cmp word [eax + 0x9a], 0
je 0x412ebf
lea ecx, [ebp - 0x59]
mov esi, dword [ebx]
mov edx, dword [ebx]
mov eax, dword [esi + 0x9c]
call dword [esi + 0x98]
cmp byte [ebp - 0x59], 0
je 0x412ed2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
mov byte [eax + 0x51], 1
lea edx, [ebp - 0x59]
mov eax, dword [ebx]
call fcn.0040e368
cmp byte [ebp - 0x59], 0
je 0x412ef5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
push 0
push 0x414f28
lea ecx, [ebp - 0xe0]
mov eax, dword [ebx]
mov eax, dword [eax + 0x1bc]
mov dl, 1
call fcn.0041cdc0
push dword [ebp - 0xe0]
push 0x414eec
lea eax, [ebp - 0xdc]
mov edx, 3
call fcn.00404a40
mov edx, dword [ebp - 0xdc]
mov ecx, 2
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
cmp word [eax + 0xb2], 0
je 0x412f5e
push 0
mov esi, dword [ebx]
xor ecx, ecx
mov edx, dword [ebx]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
cmp dword [eax + 0x21c], 2
jne 0x41301f
mov eax, dword [ebx]
cmp byte [eax + 0x70], 0
jne 0x41301f
push 0
push 8
lea eax, [ebp - 0xbe]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call fcn.0040cf38
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x412fac
mov dword [esi + 0xc], 1
mov eax, dword [ebp - 8]
add dword [0x479848], eax
cmp dword [ebp - 8], 0
jle 0x413012
cmp byte [ebp - 0xbd], 0x5a
jne 0x413012
mov eax, dword [ebx]
mov byte [eax + 0x70], 1
push 0
push 0x414eb8
mov eax, dword [ebx]
push dword [eax + 0x24]
push 0x414ec8
lea edx, [ebp - 0xe8]
mov eax, dword [ebx]
call fcn.0040ecdc
push dword [ebp - 0xe8]
push 0x414eec
lea eax, [ebp - 0xe4]
mov edx, 5
call fcn.00404a40
mov edx, dword [ebp - 0xe4]
xor ecx, ecx
mov eax, dword [ebx]
call fcn.0040f940
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
cmp dword [eax + 0x21c], 4
jne 0x4134ac
mov eax, dword [ebx]
cmp byte [eax + 0x70], 0
jne 0x4134ac
push 0
push 0xa
lea eax, [ebp - 0xbe]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call fcn.0040cf38
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x413060
mov dword [esi + 0xc], 1
mov eax, dword [ebp - 8]
add dword [0x479848], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffffe
sub eax, 4
jae 0x413439
mov eax, dword [ebx]
cmp dword [eax + 0x228], 0
je 0x413206
cmp byte [ebp - 0xbe], 5
jne 0x413206
cmp byte [ebp - 0xbd], 2
jne 0x413206
mov eax, dword [ebx]
mov eax, dword [eax + 0x228]
call fcn.00404980
cmp eax, 0x30
jle 0x4130d3
mov eax, dword [ebx]
mov eax, dword [eax + 0x228]
call fcn.00404980
mov ecx, eax
mov eax, dword [ebx]
add eax, 0x228
mov edx, 0x30
call fcn.00404c20
mov eax, dword [ebx]
mov eax, dword [eax + 0x22c]
call fcn.00404980
cmp eax, 0x30
jle 0x413105
mov eax, dword [ebx]
mov eax, dword [eax + 0x22c]
call fcn.00404980
mov ecx, eax
mov eax, dword [ebx]
add eax, 0x22c
mov edx, 0x30
call fcn.00404c20
mov byte [ebp - 0xbe], 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x228]
call fcn.00404980
mov byte [ebp - 0xbd], al
mov eax, dword [ebx]
mov eax, dword [eax + 0x228]
call fcn.00404980
test eax, eax
jle 0x413157
mov dword [ebp - 0x54], 1
mov edx, dword [ebx]
mov edx, dword [edx + 0x228]
mov ecx, dword [ebp - 0x54]
mov dl, byte [edx + ecx - 1]
mov ecx, dword [ebp - 0x54]
inc ecx
mov byte [ebp + ecx - 0xbe], dl
inc dword [ebp - 0x54]
dec eax
jne 0x413137
mov eax, dword [ebx]
mov eax, dword [eax + 0x22c]
call fcn.00404980
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x228]
call fcn.00404980
add eax, 2
pop edx
mov byte [ebp + eax - 0xbe], dl
mov eax, dword [ebx]
mov eax, dword [eax + 0x228]
call fcn.00404980
add eax, 2
mov dword [ebp - 8], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x22c]
call fcn.00404980
test eax, eax
jle 0x4131db
mov eax, dword [ebx]
mov eax, dword [eax + 0x22c]
call fcn.00404980
test eax, eax
jle 0x4131db
mov dword [ebp - 0x54], 1
mov edx, dword [ebx]
mov edx, dword [edx + 0x22c]
mov ecx, dword [ebp - 0x54]
mov dl, byte [edx + ecx - 1]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x54]
mov byte [ebp + ecx - 0xbe], dl
inc dword [ebp - 0x54]
dec eax
jne 0x4131b9
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x22c]
call fcn.00404980
add eax, dword [ebp - 8]
inc eax
push eax
lea eax, [ebp - 0xbe]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call fcn.0040cf40
jmp 0x41342c
mov eax, dword [ebx]
cmp dword [eax + 0x228], 0
je 0x41321a
cmp byte [ebp - 0xbe], 1
je 0x413236
mov eax, dword [ebx]
cmp dword [eax + 0x228], 0
jne 0x41334a
cmp byte [ebp - 0xbe], 5
jne 0x41334a
cmp byte [ebp - 0xbd], 0
jne 0x41334a
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
cmp eax, 0xffffffff
jne 0x413315
mov byte [ebp - 0xbe], 5
mov byte [ebp - 0xbd], 1
mov byte [ebp - 0xbc], 0
mov byte [ebp - 0xbb], 3
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
call fcn.00404980
mov byte [ebp - 0xba], al
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
call fcn.00404980
test eax, eax
jle 0x4132b1
mov dword [ebp - 0x54], 1
mov edx, dword [ebx]
mov edx, dword [edx + 0x24]
mov ecx, dword [ebp - 0x54]
mov dl, byte [edx + ecx - 1]
mov ecx, dword [ebp - 0x54]
add ecx, 4
mov byte [ebp + ecx - 0xbe], dl
inc dword [ebp - 0x54]
dec eax
jne 0x413292
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
call fcn.00404980
add eax, 5
mov edx, dword [ebx]
mov dl, byte [edx + 0x16]
mov byte [ebp + eax - 0xbe], dl
mov eax, dword [ebx]
mov ax, word [eax + 0x16]
call fcn.0040746c
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
call fcn.00404980
add eax, 6
pop edx
mov byte [ebp + eax - 0xbe], dl
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
call fcn.00404980
add eax, 5
add eax, 2
push eax
lea eax, [ebp - 0xbe]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call fcn.0040cf40
jmp 0x41342c
mov byte [ebp - 0x3f], 5
mov byte [ebp - 0x3e], 1
mov byte [ebp - 0x3d], 0
mov byte [ebp - 0x3c], 1
mov dword [ebp - 0x3b], eax
mov eax, dword [ebx]
mov ax, word [eax + 0x16]
mov word [ebp - 0x37], ax
push 0
push 0xa
lea eax, [ebp - 0x3f]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call fcn.0040cf40
jmp 0x41342c
mov eax, dword [ebx]
add eax, 0x1b8
mov edx, 0x414f54
call fcn.00404714
mov byte [ebp - 0x59], 0
mov eax, dword [ebx]
mov dword [eax + 0x1bc], 0x197
push 2
mov eax, dword [ebx]
mov edx, dword [eax + 0x1b8]
mov ecx, 3
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
cmp word [eax + 0x9a], 0
je 0x4133a0
lea ecx, [ebp - 0x59]
mov esi, dword [ebx]
mov edx, dword [ebx]
mov eax, dword [esi + 0x9c]
call dword [esi + 0x98]
cmp byte [ebp - 0x59], 0
je 0x4133b3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
mov byte [eax + 0x51], 1
lea edx, [ebp - 0x59]
mov eax, dword [ebx]
call fcn.0040e368
push 0
push 0x414f28
lea ecx, [ebp - 0xf0]
mov eax, dword [ebx]
mov eax, dword [eax + 0x1bc]
mov dl, 1
call fcn.0041cdc0
push dword [ebp - 0xf0]
push 0x414eec
lea eax, [ebp - 0xec]
mov edx, 3
call fcn.00404a40
mov edx, dword [ebp - 0xec]
mov ecx, 2
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
cmp word [eax + 0xb2], 0
je 0x41342c
push 0
mov esi, dword [ebx]
xor ecx, ecx
mov edx, dword [ebx]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
cmp dword [ebp - 8], 0xa
jl 0x41349f
cmp byte [ebp - 0xbe], 5
jne 0x41349f
cmp byte [ebp - 0xbd], 0
jne 0x41349f
mov eax, dword [ebx]
mov byte [eax + 0x70], 1
push 0
push 0x414eb8
mov eax, dword [ebx]
push dword [eax + 0x24]
push 0x414ec8
lea edx, [ebp - 0xf8]
mov eax, dword [ebx]
call fcn.0040ecdc
push dword [ebp - 0xf8]
push 0x414eec
lea eax, [ebp - 0xf4]
mov edx, 5
call fcn.00404a40
mov edx, dword [ebp - 0xf4]
xor ecx, ecx
mov eax, dword [ebx]
call fcn.0040f940
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
mov edi, dword [eax + 0x34]
cmp edi, dword [ebp - 0x1c]
jne 0x413697
mov eax, dword [ebx]
cmp dword [eax + 0x21c], 6
jne 0x413697
mov eax, dword [ebx]
cmp byte [eax + 0x129], 0
je 0x413697
mov eax, dword [ebx]
cmp byte [eax + 0x168], 0
jne 0x413697
push 0
push 0x1000
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
push eax
push edi
call fcn.0040cf38
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x413516
mov dword [esi + 0xc], 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 8]
mov byte [eax + edx], 0
mov eax, dword [ebp - 8]
add dword [0x479848], eax
cmp dword [ebp - 8], 0
jle 0x413595
mov edx, 0x414ea0
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
call fcn.0040a6c8
test al, al
je 0x413595
mov eax, dword [ebx]
mov byte [eax + 0x168], 1
mov eax, dword [ebx]
cmp byte [eax + 0x128], 0
jne 0x413571
mov eax, dword [ebx]
cmp dword [eax + 0x124], 0
jne 0x413562
cmp dword [eax + 0x120], 0
jae 0x413571
jmp 0x413564
jge 0x413571
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
or dword [eax + 0x12c], 2
mov eax, dword [ebx]
cmp dword [eax + 0x12c], 3
jne 0x41368a
push ebp
call fcn.00410898
pop ecx
jmp 0x41368a
mov eax, dword [ebx]
add eax, 0x1b8
mov edx, 0x414ef8
call fcn.00404714
mov byte [ebp - 0x59], 0
mov eax, dword [ebx]
mov dword [eax + 0x1bc], 0x1f4
push 2
mov eax, dword [ebx]
mov edx, dword [eax + 0x1b8]
mov ecx, 3
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
cmp word [eax + 0x9a], 0
je 0x4135eb
lea ecx, [ebp - 0x59]
mov esi, dword [ebx]
mov edx, dword [ebx]
mov eax, dword [esi + 0x9c]
call dword [esi + 0x98]
cmp byte [ebp - 0x59], 0
je 0x4135fe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
mov byte [eax + 0x51], 1
lea edx, [ebp - 0x59]
mov eax, dword [ebx]
call fcn.0040e368
cmp byte [ebp - 0x59], 0
je 0x413621
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
push 0
push 0x414f28
lea ecx, [ebp - 0x100]
mov eax, dword [ebx]
mov eax, dword [eax + 0x1bc]
mov dl, 1
call fcn.0041cdc0
push dword [ebp - 0x100]
push 0x414eec
lea eax, [ebp - 0xfc]
mov edx, 3
call fcn.00404a40
mov edx, dword [ebp - 0xfc]
mov ecx, 2
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
cmp word [eax + 0xb2], 0
je 0x41368a
push 0
mov esi, dword [ebx]
xor ecx, ecx
mov edx, dword [ebx]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
mov edi, dword [eax + 0x34]
cmp edi, dword [ebp - 0x1c]
jne 0x41376c
mov eax, dword [ebx]
cmp dword [eax + 0x21c], 2
jne 0x41376c
mov eax, dword [ebx]
cmp byte [eax + 0x129], 0
je 0x41376c
mov eax, dword [ebx]
cmp byte [eax + 0x168], 0
jne 0x41376c
push 0
push 8
lea eax, [ebp - 0xbe]
push eax
push edi
call fcn.0040cf38
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4136f3
mov dword [esi + 0xc], 1
mov eax, dword [ebp - 8]
add dword [0x479848], eax
cmp dword [ebp - 8], 0
jle 0x41375f
cmp byte [ebp - 0xbd], 0x5a
jne 0x41375f
mov eax, dword [ebx]
mov byte [eax + 0x168], 1
mov eax, dword [ebx]
cmp byte [eax + 0x128], 0
jne 0x413744
mov eax, dword [ebx]
cmp dword [eax + 0x124], 0
jne 0x413735
cmp dword [eax + 0x120], 0
jae 0x413744
jmp 0x413737
jge 0x413744
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
or dword [eax + 0x12c], 2
mov eax, dword [ebx]
cmp dword [eax + 0x12c], 3
jne 0x41375f
push ebp
call fcn.00410898
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
mov edi, dword [eax + 0x34]
cmp edi, dword [ebp - 0x1c]
jne 0x413b5a
mov eax, dword [ebx]
cmp dword [eax + 0x21c], 4
jne 0x413b5a
mov eax, dword [ebx]
cmp byte [eax + 0x129], 0
je 0x413b5a
mov eax, dword [ebx]
cmp byte [eax + 0x168], 0
jne 0x413b5a
push 0
push 0xa
lea eax, [ebp - 0xbe]
push eax
push edi
call fcn.0040cf38
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4137c8
mov dword [esi + 0xc], 1
mov eax, dword [ebp - 8]
add dword [0x479848], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffffe
sub eax, 4
jae 0x413ae1
mov eax, dword [ebx]
cmp dword [eax + 0x228], 0
je 0x41396e
cmp byte [ebp - 0xbe], 5
jne 0x41396e
cmp byte [ebp - 0xbd], 2
jne 0x41396e
mov eax, dword [ebx]
mov eax, dword [eax + 0x228]
call fcn.00404980
cmp eax, 0x30
jle 0x41383b
mov eax, dword [ebx]
mov eax, dword [eax + 0x228]
call fcn.00404980
mov ecx, eax
mov eax, dword [ebx]
add eax, 0x228
mov edx, 0x30
call fcn.00404c20
mov eax, dword [ebx]
mov eax, dword [eax + 0x22c]
call fcn.00404980
cmp eax, 0x30
jle 0x41386d
mov eax, dword [ebx]
mov eax, dword [eax + 0x22c]
call fcn.00404980
mov ecx, eax
mov eax, dword [ebx]
add eax, 0x22c
mov edx, 0x30
call fcn.00404c20
mov byte [ebp - 0xbe], 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x228]
call fcn.00404980
mov byte [ebp - 0xbd], al
mov eax, dword [ebx]
mov eax, dword [eax + 0x228]
call fcn.00404980
test eax, eax
jle 0x4138bf
mov dword [ebp - 0x54], 1
mov edx, dword [ebx]
mov edx, dword [edx + 0x228]
mov ecx, dword [ebp - 0x54]
mov dl, byte [edx + ecx - 1]
mov ecx, dword [ebp - 0x54]
inc ecx
mov byte [ebp + ecx - 0xbe], dl
inc dword [ebp - 0x54]
dec eax
jne 0x41389f
mov eax, dword [ebx]
mov eax, dword [eax + 0x22c]
call fcn.00404980
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x228]
call fcn.00404980
add eax, 2
pop edx
mov byte [ebp + eax - 0xbe], dl
mov eax, dword [ebx]
mov eax, dword [eax + 0x228]
call fcn.00404980
add eax, 2
mov dword [ebp - 8], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x22c]
call fcn.00404980
test eax, eax
jle 0x413943
mov eax, dword [ebx]
mov eax, dword [eax + 0x22c]
call fcn.00404980
test eax, eax
jle 0x413943
mov dword [ebp - 0x54], 1
mov edx, dword [ebx]
mov edx, dword [edx + 0x22c]
mov ecx, dword [ebp - 0x54]
mov dl, byte [edx + ecx - 1]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x54]
mov byte [ebp + ecx - 0xbe], dl
inc dword [ebp - 0x54]
dec eax
jne 0x413921
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x22c]
call fcn.00404980
add eax, dword [ebp - 8]
inc eax
push eax
lea eax, [ebp - 0xbe]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
push eax
call fcn.0040cf40
jmp 0x413ad4
mov eax, dword [ebx]
cmp dword [eax + 0x228], 0
je 0x413982
cmp byte [ebp - 0xbe], 1
je 0x413996
mov eax, dword [ebx]
cmp dword [eax + 0x228], 0
jne 0x4139df
cmp byte [ebp - 0xbe], 5
jne 0x4139df
cmp byte [ebp - 0xbd], 0
jne 0x4139df
mov byte [ebp - 0x3f], 5
mov byte [ebp - 0x3e], 1
mov byte [ebp - 0x3d], 0
mov byte [ebp - 0x3c], 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x15c]
mov dword [ebp - 0x3b], eax
mov eax, dword [ebx]
mov ax, word [eax + 0x15a]
mov word [ebp - 0x37], ax
push 0
push 0xa
lea eax, [ebp - 0x3f]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
push eax
call fcn.0040cf40
jmp 0x413ad4
mov eax, dword [ebx]
add eax, 0x1b8
mov edx, 0x414f54
call fcn.00404714
mov byte [ebp - 0x59], 0
mov eax, dword [ebx]
mov dword [eax + 0x1bc], 0x197
push 2
mov eax, dword [ebx]
mov edx, dword [eax + 0x1b8]
mov ecx, 3
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
cmp word [eax + 0x9a], 0
je 0x413a35
lea ecx, [ebp - 0x59]
mov esi, dword [ebx]
mov edx, dword [ebx]
mov eax, dword [esi + 0x9c]
call dword [esi + 0x98]
cmp byte [ebp - 0x59], 0
je 0x413a48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
mov byte [eax + 0x51], 1
lea edx, [ebp - 0x59]
mov eax, dword [ebx]
call fcn.0040e368
cmp byte [ebp - 0x59], 0
je 0x413a6b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
push 0
push 0x414f28
lea ecx, [ebp - 0x108]
mov eax, dword [ebx]
mov eax, dword [eax + 0x1bc]
mov dl, 1
call fcn.0041cdc0
push dword [ebp - 0x108]
push 0x414eec
lea eax, [ebp - 0x104]
mov edx, 3
call fcn.00404a40
mov edx, dword [ebp - 0x104]
mov ecx, 2
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
cmp word [eax + 0xb2], 0
je 0x413ad4
push 0
mov esi, dword [ebx]
xor ecx, ecx
mov edx, dword [ebx]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
cmp dword [ebp - 8], 0xa
jl 0x413b4d
cmp byte [ebp - 0xbe], 5
jne 0x413b4d
cmp byte [ebp - 0xbd], 0
jne 0x413b4d
mov eax, dword [ebx]
mov byte [eax + 0x168], 1
mov eax, dword [ebx]
cmp byte [eax + 0x128], 0
jne 0x413b32
mov eax, dword [ebx]
cmp dword [eax + 0x124], 0
jne 0x413b23
cmp dword [eax + 0x120], 0
jae 0x413b32
jmp 0x413b25
jge 0x413b32
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
or dword [eax + 0x12c], 2
mov eax, dword [ebx]
cmp dword [eax + 0x12c], 3
jne 0x413b4d
push ebp
call fcn.00410898
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
cmp byte [eax + 0x50], 0
jne 0x413b9e
mov eax, dword [ebx]
mov eax, dword [eax + 0x38]
cmp eax, dword [ebp - 0x1c]
jne 0x413b9e
mov eax, dword [ebx]
cmp byte [eax + 0x150], 0
jne 0x413b9e
mov eax, dword [ebx]
cmp dword [eax + 0x60], 8
je 0x413b9e
mov eax, dword [ebx]
cmp dword [eax + 0x124], 0
jne 0x413b95
cmp dword [eax + 0x120], 0
jb 0x413b9e
jmp 0x413b97
jl 0x413b9e
push ebp
call fcn.00410898
pop ecx
mov eax, dword [ebx]
cmp byte [eax + 0x50], 0
jne 0x413bea
mov eax, dword [ebx]
cmp byte [eax + 0x128], 0
jne 0x413bc9
mov eax, dword [ebx]
cmp dword [eax + 0x124], 0
jne 0x413bc7
cmp dword [eax + 0x120], 0
jb 0x413bea
jmp 0x413bc9
jl 0x413bea
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x1c]
je 0x413bdd
mov eax, dword [ebx]
mov eax, dword [eax + 0x38]
cmp eax, dword [ebp - 0x1c]
jne 0x413bea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x1c]
je 0x413c02
mov eax, dword [ebx]
mov eax, dword [eax + 0x38]
cmp eax, dword [ebp - 0x1c]
jne 0x413d2b
mov eax, dword [ebx]
cmp byte [eax + 0x128], 0
jne 0x413c3c
mov eax, dword [ebx]
cmp byte [eax + 0x128], 0
jne 0x413d2b
mov eax, dword [ebx]
cmp dword [eax + 0x124], 0
jne 0x413c36
cmp dword [eax + 0x120], 0
jae 0x413d2b
jmp 0x413c3c
jge 0x413d2b
mov eax, dword [ebx]
cmp byte [eax + 0x128], 0
jne 0x413ca4
mov eax, dword [ebx]
cmp dword [eax + 0x134], 0x800
jl 0x413ca4
push 0
push 0x800
mov eax, dword [ebx]
mov eax, dword [eax + 0x48]
mov edx, dword [ebx]
add eax, dword [edx + 0x134]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040cf38
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x413c97
mov dword [esi + 0xc], 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
add eax, dword [ebp - 8]
mov edx, dword [ebx]
mov edx, dword [edx + 0x48]
mov byte [edx + eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
push 0
mov eax, dword [ebx]
mov edi, dword [eax + 0x134]
mov eax, 0x800
sub eax, edi
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x48]
add eax, edi
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040cf38
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add dword [0x479848], eax
cmp dword [ebp - 8], 0
jle 0x413de4
mov dword [esi + 0xc], 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
add eax, dword [ebp - 8]
mov edx, dword [ebx]
mov edx, dword [edx + 0x48]
mov byte [edx + eax], 0
mov eax, dword [ebx]
cmp byte [eax + 0x128], 0
je 0x413d13
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
add dword [ebp - 8], eax
jmp 0x413de4
mov eax, dword [ebx]
mov edx, dword [ebp - 8]
add dword [eax + 0x134], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
cmp byte [eax + 0x143], 0
je 0x413d61
mov eax, dword [ebx]
mov eax, dword [eax + 0x38]
cmp eax, dword [ebp - 0x1c]
je 0x413d4a
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x1c]
jne 0x413d61
mov eax, dword [ebx]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x144], edx
mov dword [ebp - 8], 0xffffffff
jmp 0x413de4
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x1c]
je 0x413d75
mov eax, dword [ebx]
mov eax, dword [eax + 0x38]
cmp eax, dword [ebp - 0x1c]
jne 0x413da9
push 0
push 0x1000
mov eax, dword [ebx]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040cf38
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x413ddb
mov dword [esi + 0xc], 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 8]
mov byte [eax + edx], 0
jmp 0x413ddb
push 0
push 0x1000
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040cf38
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x413ddb
mov dword [esi + 0xc], 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 8]
mov byte [eax + edx], 0
mov eax, dword [ebp - 8]
add dword [0x479848], eax
cmp dword [ebp - 8], 0
jg 0x413df7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
mov eax, dword [eax + 0x38]
cmp eax, dword [ebp - 0x1c]
je 0x413e0f
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x1c]
jne 0x414178
mov ecx, dword [ebp - 8]
mov eax, ecx
xor edx, edx
mov esi, dword [ebx]
cmp edx, dword [esi + 0x1ac]
jne 0x413e2a
cmp eax, dword [esi + 0x1a8]
jbe 0x413e49
jmp 0x413e2c
jle 0x413e49
mov eax, dword [ebx]
sub ecx, dword [eax + 0x1a8]
mov eax, dword [ebx]
mov dword [eax + 0x1d8], ecx
mov eax, dword [ebx]
mov eax, dword [eax + 0x1a8]
mov dword [ebp - 8], eax
jmp 0x413e53
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x1d8], edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x1ac]
mov eax, dword [eax + 0x1a8]
push edx
push eax
mov eax, dword [ebp - 8]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov ecx, dword [ebx]
mov dword [ecx + 0x1a8], eax
mov dword [ecx + 0x1ac], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, dword [ebx]
add eax, dword [ecx + 0x68]
adc edx, dword [ecx + 0x6c]
mov ecx, dword [ebx]
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], edx
mov eax, dword [ebx]
cmp dword [eax + 0x1b4], 0
jne 0x413eba
cmp dword [eax + 0x1b0], 0
jne 0x413eba
mov eax, dword [ebx]
push dword [eax + 0x6c]
push dword [eax + 0x68]
lea eax, [ebp - 0x24]
call fcn.00407b8c
jmp 0x413f21
mov eax, dword [ebx]
fild qword [eax + 0x1a8]
mov eax, dword [ebx]
fild qword [eax + 0x1b0]
fdivp st(1)
fmul dword [0x414f78]
fsubr dword [0x414f78]
call fcn.00402adc
push edx
push eax
lea eax, [ebp - 0x10c]
call fcn.00407b8c
push dword [ebp - 0x10c]
push 0x414f84
mov eax, dword [ebx]
push dword [eax + 0x1b4]
push dword [eax + 0x1b0]
lea eax, [ebp - 0x110]
call fcn.00407b8c
push dword [ebp - 0x110]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404a40
push 0
push dword [ebp - 0x24]
push 0x414f94
lea edx, [ebp - 0x118]
mov eax, dword [ebx]
call fcn.0040ecdc
push dword [ebp - 0x118]
push 0x414eec
lea eax, [ebp - 0x114]
mov edx, 4
call fcn.00404a40
mov edx, dword [ebp - 0x114]
mov ecx, 1
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
cmp byte [eax + 0x128], 0
je 0x413f89
push ebp
lea edx, [ebp - 8]
mov eax, dword [ebx]
mov eax, dword [eax + 0x48]
call fcn.0040fd44
pop ecx
mov edx, dword [ebx]
mov dword [edx + 0x134], eax
jmp 0x413f93
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x134], edx
cmp dword [ebp - 8], 0
jle 0x413fff
mov eax, dword [ebx]
cmp word [eax + 0xa2], 0
je 0x413fff
mov byte [ebp - 0x59], 0
mov eax, dword [ebx]
mov edx, dword [ebp - 8]
sub edx, dword [eax + 0x134]
push edx
lea eax, [ebp - 0x59]
push eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x48]
mov esi, dword [ebx]
mov edx, dword [ebx]
mov eax, dword [esi + 0xa4]
call dword [esi + 0xa0]
cmp byte [ebp - 0x59], 0
je 0x413fe1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
test eax, eax
jle 0x413fff
mov edx, dword [ebx]
mov edx, dword [edx + 0x48]
mov ecx, edx
add ecx, dword [ebp - 8]
sub ecx, eax
xchg ecx, eax
call fcn.0040285c
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x1d8], edx
mov eax, dword [ebx]
cmp dword [eax + 0x1ac], 0
jne 0x414023
cmp dword [eax + 0x1a8], 0
ja 0x41416b
jmp 0x414029
jg 0x41416b
mov eax, dword [ebx]
cmp byte [eax + 0x58], 0
jne 0x41403e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
mov byte [eax + 0x58], 0
mov eax, dword [ebx]
cmp dword [eax + 0x54], 0
jle 0x41405c
push 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c4]
push eax
call fcn.004072bc
mov eax, dword [ebx]
cmp byte [eax + 0x1cc], 0
je 0x41411a
mov eax, dword [ebx]
cmp byte [eax + 0x140], 0
jne 0x414121
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x90]
inc eax
imul eax, eax, 0x3e8
push eax
push 2
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c4]
push eax
call fcn.004073d4
mov eax, dword [ebx]
mov byte [eax + 0x140], 1
mov eax, dword [ebx]
cmp dword [eax + 0x60], 9
jne 0x414121
mov eax, dword [ebx]
mov edx, dword [eax + 0x124]
mov eax, dword [eax + 0x120]
mov ecx, dword [ebx]
cmp edx, dword [ecx + 0x6c]
jne 0x4140c9
cmp eax, dword [ecx + 0x68]
jbe 0x414121
jmp 0x4140cb
jle 0x414121
lea eax, [ebp - 0x24]
mov edx, 0x414fa8
call fcn.00404758
push 0
xor ecx, ecx
mov edx, 0x414fb8
mov eax, dword [ebx]
call fcn.0040f940
push 0
mov eax, dword [ebp - 0x24]
call fcn.00404980
push eax
mov eax, dword [ebp - 0x24]
call fcn.00404b80
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call fcn.0040cf40
push 1
mov ecx, 3
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx]
call fcn.0040f940
jmp 0x414121
mov eax, dword [ebx]
call fcn.0040f8e8
mov eax, dword [ebx]
mov byte [eax + 0x51], 1
lea eax, [ebp - 0x24]
mov edx, 0x414fd8
call fcn.00404758
xor eax, eax
mov dword [ebp - 0x54], eax
push 0
mov ecx, 2
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
cmp word [eax + 0xb2], 0
je 0x41416b
push 0
mov esi, dword [ebx]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebx]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
cmp eax, dword [ebp - 0x1c]
jne 0x4141dc
push ebp
lea edx, [ebp - 0x58]
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
call fcn.0041025c
pop ecx
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jg 0x4141bc
mov eax, dword [ebx]
cmp dword [eax + 0x60], 8
jne 0x4141bc
mov edx, 0x414fec
mov eax, dword [ebx]
mov eax, dword [eax + 0x44]
call fcn.0040a698
test al, al
je 0x4141bc
mov dword [ebp - 0x54], 1
cmp dword [ebp - 0x54], 0
je 0x4141cc
push ebp
mov eax, dword [ebp - 0x54]
call fcn.00410ee8
pop ecx
cmp dword [ebp - 0x58], 0
je 0x4141dc
push ebp
mov eax, dword [ebp - 0x58]
call fcn.00410ee8
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [esi + 8]
call fcn.0040ced4
cmp ax, 0x20
jne 0x414891
mov eax, dword [ebx]
cmp dword [eax + 0x54], 0
jle 0x414213
push 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c4]
push eax
call fcn.004072bc
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x1c]
jne 0x414261
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0xca], eax
mov dword [ebp - 0xc6], 1
lea edx, [ebp - 0xce]
mov eax, dword [ebx]
call fcn.00412d10
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0xca], eax
mov dword [ebp - 0xc6], 1
lea edx, [ebp - 0xce]
mov eax, dword [ebx]
call fcn.00412d10
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040cef0
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x1c]
je 0x414282
mov eax, dword [ebx]
mov eax, dword [eax + 0x38]
cmp eax, dword [ebp - 0x1c]
jne 0x414622
mov eax, dword [ebx]
cmp byte [eax + 0x128], 0
jne 0x414622
mov eax, dword [ebx]
cmp dword [eax + 0x124], 0
jne 0x4142ab
cmp dword [eax + 0x120], 0
jae 0x414622
jmp 0x4142b1
jge 0x414622
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
mov edx, dword [ebx]
mov edx, dword [edx + 0x48]
mov byte [edx + eax], 0
push 0
xor ecx, ecx
mov edx, 0x414ffc
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
cmp dword [eax + 0x134], 0x800
jge 0x414304
push 2
lea eax, [ebp - 0x11c]
mov edx, dword [ebx]
mov edx, dword [edx + 0x48]
call fcn.004048b8
mov edx, dword [ebp - 0x11c]
mov ecx, 3
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
mov edx, dword [eax + 0x48]
mov eax, dword [ebx]
call fcn.004152e0
mov ecx, dword [ebx]
mov dword [ecx + 0x120], eax
mov dword [ecx + 0x124], edx
mov eax, dword [ebx]
cmp dword [eax + 0x124], 0xffffffff
jne 0x414435
cmp dword [eax + 0x120], 0xfffff84b
jne 0x414435
mov eax, dword [ebx]
mov byte [eax + 0x51], 1
mov eax, dword [ebx]
mov dword [eax + 0x1bc], 0x130
mov eax, dword [ebx]
mov byte [eax + 0x58], 0
mov eax, dword [ebx]
add eax, 0x1b8
mov edx, 0x415024
call fcn.00404714
mov eax, dword [ebx]
mov byte [eax + 0x50], 1
push 2
mov eax, dword [ebx]
mov edx, dword [eax + 0x1b8]
mov ecx, 3
mov eax, dword [ebx]
call fcn.0040f940
mov byte [ebp - 0x59], 0
mov eax, dword [ebx]
cmp word [eax + 0x9a], 0
je 0x4143a5
lea ecx, [ebp - 0x59]
mov esi, dword [ebx]
mov edx, dword [ebx]
mov eax, dword [esi + 0x9c]
call dword [esi + 0x98]
cmp byte [ebp - 0x59], 0
je 0x4143b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
call fcn.0040f8e8
push 0
push 0x414f28
lea ecx, [ebp - 0x124]
mov eax, dword [ebx]
mov eax, dword [eax + 0x1bc]
mov dl, 1
call fcn.0041cdc0
push dword [ebp - 0x124]
push 0x414eec
lea eax, [ebp - 0x120]
mov edx, 3
call fcn.00404a40
mov edx, dword [ebp - 0x120]
mov ecx, 2
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
cmp word [eax + 0xb2], 0
je 0x414428
push 0
mov esi, dword [ebx]
xor ecx, ecx
mov edx, dword [ebx]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
mov eax, dword [eax + 0x54]
test eax, eax
jle 0x414451
push 0
push eax
push 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c4]
push eax
call fcn.004073d4
mov eax, dword [ebx]
cmp dword [eax + 0x124], 0
jne 0x414467
cmp dword [eax + 0x120], 0
jb 0x4144b3
jmp 0x414469
jl 0x4144b3
push 0
push 0x415060
mov eax, dword [ebx]
push dword [eax + 0x124]
push dword [eax + 0x120]
lea eax, [ebp - 0x12c]
call fcn.00407b8c
push dword [ebp - 0x12c]
push 0x414eec
lea eax, [ebp - 0x128]
mov edx, 3
call fcn.00404a40
mov edx, dword [ebp - 0x128]
xor ecx, ecx
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
mov eax, dword [eax + 0x60]
sub eax, 0xa
jne 0x4145e9
mov eax, dword [ebx]
cmp dword [eax + 0x124], 0
jne 0x4144db
cmp dword [eax + 0x120], 0
jae 0x414567
jmp 0x4144e1
jge 0x414567
push 0x415070
lea edx, [ebp - 0x130]
mov eax, dword [ebx]
mov eax, dword [eax + 0x14c]
call fcn.0040f50c
push dword [ebp - 0x130]
push 0x415080
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404a40
push 0
xor ecx, ecx
mov edx, 0x41508c
mov eax, dword [ebx]
call fcn.0040f940
push 0
mov eax, dword [ebp - 0x24]
call fcn.00404980
push eax
mov eax, dword [ebp - 0x24]
call fcn.00404b80
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call fcn.0040cf40
push 1
mov ecx, 3
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
mov dword [eax + 0x60], 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
cmp byte [eax + 0x128], 0
je 0x414591
lea eax, [ebp - 0x24]
mov edx, 0x4150ac
call fcn.00404758
push 0
xor ecx, ecx
mov edx, 0x4150c0
mov eax, dword [ebx]
call fcn.0040f940
jmp 0x4145ae
lea eax, [ebp - 0x24]
mov edx, 0x4150e0
call fcn.00404758
push 0
xor ecx, ecx
mov edx, 0x4150f4
mov eax, dword [ebx]
call fcn.0040f940
push 0
mov eax, dword [ebp - 0x24]
call fcn.00404980
push eax
mov eax, dword [ebp - 0x24]
call fcn.00404b80
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call fcn.0040cf40
push 1
mov ecx, 3
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
mov dword [eax + 0x60], 5
jmp 0x414615
mov eax, dword [ebx]
cmp dword [eax + 0x124], 0
jne 0x4145ff
cmp dword [eax + 0x120], 0
jb 0x41460c
jmp 0x414601
jl 0x41460c
mov eax, dword [ebx]
mov dword [eax + 0x60], 4
jmp 0x414615
mov eax, dword [ebx]
mov dword [eax + 0x60], 0xc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x1c]
je 0x41463a
mov eax, dword [ebx]
mov eax, dword [eax + 0x38]
cmp eax, dword [ebp - 0x1c]
jne 0x4146ea
mov eax, dword [ebx]
cmp byte [eax + 0x128], 0
je 0x4146ea
mov eax, dword [ebx]
cmp dword [eax + 0x134], 0
jle 0x4146ea
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
mov edx, dword [ebx]
mov edx, dword [edx + 0x48]
mov byte [edx + eax], 0xd
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
mov edx, dword [ebx]
mov edx, dword [edx + 0x48]
mov byte [edx + eax + 1], 0xa
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
mov edx, dword [ebx]
mov edx, dword [edx + 0x48]
mov byte [edx + eax + 2], 0
push ebp
lea edx, [ebp - 8]
mov eax, dword [ebx]
mov eax, dword [eax + 0x48]
call fcn.0040fd44
pop ecx
cmp dword [ebp - 8], 0
jle 0x4146ea
mov eax, dword [ebx]
cmp word [eax + 0xa2], 0
je 0x4146ea
mov byte [ebp - 0x59], 0
mov eax, dword [ebx]
mov edx, dword [ebp - 8]
sub edx, dword [eax + 0x134]
push edx
lea eax, [ebp - 0x59]
push eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x48]
mov edi, dword [ebx]
mov edx, dword [ebx]
mov eax, dword [edi + 0xa4]
call dword [edi + 0xa0]
cmp byte [ebp - 0x59], 0
je 0x4146ea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
cmp dword [eax + 0x1ac], 0
jne 0x414700
cmp dword [eax + 0x1a8], 0
ja 0x414708
jmp 0x414702
jg 0x414708
mov eax, dword [ebx]
mov byte [eax + 0x51], 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
cmp eax, dword [ebp - 0x1c]
je 0x41476f
mov eax, dword [ebx]
cmp byte [eax + 0x1cc], 0
je 0x41476f
mov eax, dword [ebx]
cmp byte [eax + 0x140], 0
jne 0x41475a
mov eax, dword [ebx]
mov byte [eax + 0x140], 1
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x90]
inc eax
imul eax, eax, 0x3e8
push eax
push 2
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c4]
push eax
call fcn.004073d4
mov eax, dword [ebx]
call fcn.0040f910
mov eax, dword [ebx]
cmp dword [eax + 0x60], 0xb
jne 0x414776
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
call fcn.0040f8e8
mov eax, dword [ebx]
cmp byte [eax + 0x58], 0
jne 0x41478b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
mov byte [eax + 0x58], 0
mov eax, dword [ebx]
cmp byte [eax + 0x51], 0
jne 0x4147e2
push 0
push 0x41511c
lea ecx, [ebp - 0x138]
mov eax, dword [ebx]
mov eax, dword [eax + 0x1bc]
mov dl, 1
call fcn.0041cdc0
push dword [ebp - 0x138]
push 0x414eec
lea eax, [ebp - 0x134]
mov edx, 3
call fcn.00404a40
mov edx, dword [ebp - 0x134]
mov ecx, 2
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
cmp byte [eax + 0x50], 0
je 0x414802
mov eax, dword [ebx]
cmp dword [eax + 0x1b4], 0
jne 0x414800
cmp dword [eax + 0x1b0], 0
jbe 0x414853
jmp 0x414802
jle 0x414853
mov eax, dword [ebx]
cmp byte [eax + 0x51], 0
jne 0x414853
mov eax, dword [ebx]
cmp dword [eax + 0x6c], 0
jne 0x41481a
cmp dword [eax + 0x68], 0
jbe 0x414853
jmp 0x41481c
jle 0x414853
mov eax, dword [ebx]
mov eax, dword [eax + 0x1bc]
add eax, 0xffffff38
sub eax, 0x38
jae 0x414853
mov eax, dword [ebx]
cmp byte [eax + 0x94], 0
je 0x414853
mov dl, 1
mov eax, dword [ebx]
call fcn.0041ae34
test al, al
je 0x414853
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
cmp byte [eax + 0x51], 0
je 0x41486e
push 0
mov ecx, 2
mov edx, 0x415140
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
cmp word [eax + 0xb2], 0
je 0x414891
push 0
mov edi, dword [ebx]
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edi + 0xb4]
call dword [edi + 0xb0]
mov eax, dword [esi + 8]
call fcn.0040ced4
cmp ax, 0x10
jne 0x414bd4
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x1c]
je 0x414bd4
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c0]
mov edx, 0x415164
call fcn.00404acc
jne 0x4148d1
mov eax, dword [ebx]
add eax, 0x1c0
call fcn.004046c0
call fcn.004079dc
mov eax, dword [ebx]
fsub qword [eax + 0xf0]
fstp qword [ebp - 0x50]
wait
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0xe8], edx
mov eax, dword [ebx]
cmp dword [eax + 0x54], 0
jle 0x414904
push 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c4]
push eax
call fcn.004072bc
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x60], edx
mov eax, dword [ebx]
mov byte [eax + 0x118], 0
mov eax, dword [esi + 8]
call fcn.0040ced8
test ax, ax
jne 0x414af6
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
cmp eax, 6
jne 0x4149ce
push 0
xor ecx, ecx
mov edx, 0x415174
mov eax, dword [ebx]
call fcn.0040f940
push 0x4151a8
mov eax, dword [ebx]
push dword [eax + 0x24]
push 0x4151bc
lea edx, [ebp - 0x13c]
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
call fcn.00407b64
push dword [ebp - 0x13c]
push 0x4151c8
lea edx, [ebp - 0x140]
mov eax, dword [ebx]
call fcn.004178cc
push dword [ebp - 0x140]
push 0x4151dc
mov eax, dword [ebx]
push dword [eax + 0x24]
push 0x415080
push 0x4151ec
push 0x415208
push 0x415230
lea eax, [ebp - 0x24]
mov edx, 0xc
call fcn.00404a40
push ebp
mov eax, dword [ebp - 0x24]
call fcn.00410e78
pop ecx
push 1
mov ecx, 3
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx]
call fcn.0040f940
jmp 0x414bb8
cmp eax, 2
jne 0x414a3c
push 0
xor ecx, ecx
mov edx, 0x415174
mov eax, dword [ebx]
call fcn.0040f940
mov byte [ebp - 0x35], 4
mov byte [ebp - 0x34], 1
mov eax, dword [ebx]
mov ax, word [eax + 0x16]
mov word [ebp - 0x33], ax
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x31], eax
mov byte [ebp - 0x2d], 0
push 0
push 8
lea eax, [ebp - 0x35]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call fcn.0040cf40
mov byte [ebp - 0x43], 0x53
mov byte [ebp - 0x42], 0x53
mov byte [ebp - 0x41], 0x4c
mov byte [ebp - 0x40], 0
push 0
push 4
lea eax, [ebp - 0x43]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call fcn.0040cf40
jmp 0x414bb8
cmp eax, 4
jne 0x414a8a
push 0
xor ecx, ecx
mov edx, 0x415174
mov eax, dword [ebx]
call fcn.0040f940
mov byte [ebp - 0x43], 5
mov byte [ebp - 0x42], 1
mov eax, dword [ebx]
cmp dword [eax + 0x228], 0
je 0x414a6a
mov byte [ebp - 0x41], 2
jmp 0x414a6e
mov byte [ebp - 0x41], 0
mov byte [ebp - 0x40], 0
push 0
push 3
lea eax, [ebp - 0x43]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call fcn.0040cf40
jmp 0x414bb8
cmp eax, 3
jl 0x414a9e
lea eax, [ebp - 0x24]
mov edx, 0x415250
call fcn.00404758
jmp 0x414ab0
mov eax, dword [ebx]
mov ecx, dword [eax + 0x24]
lea eax, [ebp - 0x24]
mov edx, 0x414eb8
call fcn.004049cc
push 0
push dword [ebp - 0x24]
push 0x414ec8
lea edx, [ebp - 0x148]
mov eax, dword [ebx]
call fcn.0040ecdc
push dword [ebp - 0x148]
push 0x414eec
lea eax, [ebp - 0x144]
mov edx, 4
call fcn.00404a40
mov edx, dword [ebp - 0x144]
xor ecx, ecx
mov eax, dword [ebx]
call fcn.0040f940
jmp 0x414bb8
fld xword [0x415260]
fcomp qword [ebp - 0x50]
fnstsw ax
sahf
jbe 0x414b34
mov eax, dword [ebx]
mov dword [eax + 0xe8], 4
push 0
push 0x3e8
push 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c4]
push eax
call fcn.004073d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
push 0
push 0x415274
mov eax, dword [ebx]
push dword [eax + 0x24]
push 0x415290
lea eax, [ebp - 0x14c]
mov edx, 3
call fcn.00404a40
mov edx, dword [ebp - 0x14c]
xor ecx, ecx
mov eax, dword [ebx]
call fcn.0040f940
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call fcn.0040cef0
mov eax, dword [ebx]
mov dword [eax + 0x30], 0xffffffff
mov eax, dword [ebx]
mov byte [eax + 0x58], 0
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x210], edx
mov eax, dword [ebx]
cmp word [eax + 0xb2], 0
je 0x414bab
push 0
mov esi, dword [ebx]
mov ecx, 4
mov edx, dword [ebx]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
mov eax, dword [eax + 0x54]
test eax, eax
jle 0x414bd4
push 0
push eax
push 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c4]
push eax
call fcn.004073d4
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x1c]
jne 0x414e48
mov eax, dword [esi + 8]
call fcn.0040ced4
cmp ax, 8
je 0x414c02
mov eax, dword [esi + 8]
call fcn.0040ced4
cmp ax, 0x10
jne 0x414e48
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c0]
mov edx, 0x415164
call fcn.00404acc
jne 0x414c22
mov eax, dword [ebx]
add eax, 0x1c0
call fcn.004046c0
mov eax, dword [esi + 8]
call fcn.0040ced8
test ax, ax
je 0x414c48
mov edx, 0x4152a4
mov eax, dword [ebx]
call fcn.0041dd68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
cmp byte [eax + 0x129], 0
jne 0x414c9b
mov dword [ebp - 0x54], 0x10
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
push eax
call fcn.0040cee0
mov esi, eax
mov eax, dword [ebx]
mov dword [eax + 0x38], esi
inc esi
jne 0x414c83
mov edx, 0x4152a4
mov eax, dword [ebx]
call fcn.0041dd68
push 0
mov ecx, 3
mov edx, 0x4152c4
mov eax, dword [ebx]
call fcn.0040f940
jmp 0x414e00
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
cmp eax, 6
jne 0x414d51
push 0
xor ecx, ecx
mov edx, 0x415174
mov eax, dword [ebx]
call fcn.0040f940
push 0x4151a8
mov eax, dword [ebx]
push dword [eax + 0x24]
push 0x4151bc
mov eax, dword [ebx]
mov ax, word [eax + 0x15a]
push eax
call fcn.0040cf10
movzx eax, ax
lea edx, [ebp - 0x150]
call fcn.00407b64
push dword [ebp - 0x150]
push 0x4151c8
lea edx, [ebp - 0x154]
mov eax, dword [ebx]
call fcn.004178cc
push dword [ebp - 0x154]
push 0x4151dc
mov eax, dword [ebx]
push dword [eax + 0x24]
push 0x415080
push 0x4151ec
push 0x415208
push 0x415230
lea eax, [ebp - 0x24]
mov edx, 0xc
call fcn.00404a40
push ebp
mov eax, dword [ebp - 0x24]
call fcn.00410e78
pop ecx
push 1
mov ecx, 3
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx]
call fcn.0040f940
jmp 0x414e00
cmp eax, 2
jne 0x414dbd
mov byte [ebp - 0x35], 4
mov byte [ebp - 0x34], 1
mov eax, dword [ebx]
mov ax, word [eax + 0x15a]
mov word [ebp - 0x33], ax
mov eax, dword [ebx]
mov eax, dword [eax + 0x15c]
mov dword [ebp - 0x31], eax
mov byte [ebp - 0x2d], 0
push 0
push 8
lea eax, [ebp - 0x35]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
push eax
call fcn.0040cf40
mov byte [ebp - 0x43], 0x53
mov byte [ebp - 0x42], 0x53
mov byte [ebp - 0x41], 0x4c
mov byte [ebp - 0x40], 0
push 0
push 4
lea eax, [ebp - 0x43]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
push eax
call fcn.0040cf40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
cmp eax, 4
jne 0x414e00
mov byte [ebp - 0x43], 5
mov byte [ebp - 0x42], 1
mov eax, dword [ebx]
cmp dword [eax + 0x228], 0
je 0x414ddb
mov byte [ebp - 0x41], 2
jmp 0x414ddf
mov byte [ebp - 0x41], 0
mov byte [ebp - 0x40], 0
push 0
push 3
lea eax, [ebp - 0x43]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x34]
push eax
call fcn.0040cf40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
cmp byte [eax + 0x128], 0
jne 0x414e2d
mov eax, dword [ebx]
cmp dword [eax + 0x124], 0
jne 0x414e21
cmp dword [eax + 0x120], 0
jae 0x414e2d
jmp 0x414e23
jge 0x414e2d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
mov eax, dword [ebx]
or dword [eax + 0x12c], 2
mov eax, dword [ebx]
cmp dword [eax + 0x12c], 3
jne 0x414e48
push ebp
call fcn.00410898
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414e5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414e96
lea eax, [ebp - 0x154]
mov edx, 0x21
call fcn.004046e4
lea eax, [ebp - 0x2c]
call fcn.004046c0
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004046e4
ret