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

Disassembly:
push 0xffffffffffffffff
push 0x4820e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov edx, dword [esp + 0x160]
mov eax, dword [esp + 0x164]
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x50], esi
push edi
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], ecx
mov dword [edx + 0x44], esi
mov dword [esp + 0x14], vtable.bin.0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], 0x4a79b8
mov dword [esp + 0x168], esi
mov eax, dword [edx + 0x40]
mov ecx, dword [edx + 0x3c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov eax, dword [edx]
mov dword [esp + 0x2c], esi
mov byte [esp + 0x1c], 1
movzx edx, byte [eax + 0x175d]
movzx eax, byte [eax + 0x175c]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
test eax, eax
jge 0x4030c0
fadd dword [0x48a3f0]
fdiv qword [0x48a3c0]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
test edx, edx
jge 0x4030d8
fadd dword [0x48a3f0]
mov eax, 4
faddp st(1)
mov dword [esp + 0x2c], eax
mov edx, dword [ecx]
cmp edx, esi
fstp dword [esp + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x44], esi
jle 0x403d42
lea esp, [esp]
push 0xe0
call fcn.00459f99
add esp, 4
mov dword [esp + 0x4c], eax
mov byte [esp + 0x168], 1
test eax, eax
je 0x403127
push eax
call fcn.00405c60
mov ebp, eax
jmp 0x403129
xor ebp, ebp
mov byte [esp + 0x168], 0
add dword [esp + 0x2c], 4
mov dword [esp + 0x4c], ebp
call fcn.0045a431
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x403dd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
mov byte [esp + 0x168], 3
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov esi, dword [ecx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
add eax, ecx
jne 0x403180
xor ecx, ecx
jmp 0x40318e
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403185
sub ecx, edi
push ecx
push eax
lea ecx, [esp + 0x48]
call fcn.00414de0
mov eax, dword [esp + 0x2c]
add eax, esi
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x20]
lea edx, [ecx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
mov edx, dword [edx]
add ecx, eax
inc eax
mov dword [esp + 0x2c], eax
cmp byte [ecx], 0
mov dword [esp + 0x50], edx
setne al
mov byte [ebp + 0x15], al
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
mov dword [ebp + 0x28], ecx
mov byte [ebp + 0x2c], 0
mov eax, dword [ebp + 0x28]
dec eax
cmp eax, 5
ja case.default.0x4031ea
jmp dword [eax*4 + 0x405c40]
fld dword [0x48a480]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 0x41
jne case.default.0x4031ea
jmp 0x40324b
fld dword [0x48a480]
jmp 0x403240
fld dword [0x48a47c]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 0x41
jne case.default.0x4031ea
jmp 0x40324b
fld dword [0x48a47c]
jmp 0x403240
fld dword [0x48a478]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 0x41
jne case.default.0x4031ea
jmp 0x40324b
fld dword [0x48a478]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 0x41
jp case.default.0x4031ea
mov byte [ebp + 0x2c], 1
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
lea eax, [edx + ecx]
add ecx, 4
mov dword [esp + 0x2c], ecx
mov eax, dword [eax]
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], 0
test eax, eax
jle 0x40342f
call fcn.0045a431
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x403dd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x168], 5
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov esi, dword [eax + ecx]
add ecx, 4
add eax, ecx
mov dword [esp + 0x2c], ecx
jne 0x4032bd
xor ecx, ecx
jmp 0x4032cb
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4032c2
sub ecx, edi
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.00414de0
mov eax, dword [esp + 0x2c]
add eax, esi
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x34]
mov ebx, dword [ecx]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x40331a
cmp eax, dword [esi]
jne 0x40331a
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40334e
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x403dda
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
lea ecx, [esi + 0x10]
push ecx
push eax
lea edx, [edi + 0x10]
push edx
call fcn.00463e08
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x88], edi
mov byte [esp + 0x168], 7
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x168], 8
mov eax, dword [ebp + 0x9c]
lea edi, [ebp + 0x98]
test eax, eax
jne 0x403383
xor ecx, ecx
jmp 0x40338b
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 3
mov ebx, dword [edi + 8]
mov edx, ebx
sub edx, eax
sar edx, 3
cmp edx, ecx
jae 0x4033c2
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x58]
push eax
push ecx
push 1
push ebx
lea ecx, [esp + 0x98]
call fcn.00410220
add esp, 0x10
add ebx, 8
mov dword [edi + 8], ebx
jmp 0x4033d0
push ebx
push edi
lea ecx, [esp + 0x90]
call fcn.0040c4d0
mov byte [esp + 0x168], 5
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4033fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x168], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40341c
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x38]
inc eax
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
jl 0x403277
mov eax, dword [esp + 0x50]
add dword [esp + 0x2c], 0x10
mov esi, dword [esp + 0x170]
mov ecx, dword [esi]
mov edx, eax
imul edx, edx, 0x58
add edx, dword [ecx + 0x1f0c]
lea ecx, [ebp + 0x1c]
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
lea eax, [esp + 0x40]
push eax
call fcn.00413d90
mov ecx, dword [esp + 0x44]
xor eax, eax
mov dword [ebp + 0x10], eax
mov dword [ebp], ecx
mov edx, dword [esi]
mov dword [ebp + 0x18], edx
mov dword [ebp + 0xc], 0xffffffff
mov byte [ebp + 0x14], al
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov byte [esp + 0x168], 0xd
lea ecx, [esp + 0x98]
mov dword [esp + 0xa8], 1
call fcn.00413a30
mov byte [esp + 0x168], 0xe
mov esi, dword [ebp + 0x3c]
mov ecx, dword [esi + 4]
lea ebx, [ebp + 0x38]
lea eax, [esp + 0x98]
push eax
push ecx
push esi
call fcn.00413c50
mov ecx, ebx
mov edi, eax
call fcn.00413d00
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov byte [esp + 0x168], 3
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x4034fb
push eax
call fcn.00459fc8
add esp, 4
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax]
add eax, 8
mov dword [ebp + 0x34], eax
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x24], edx
mov dword [ebp + 0x30], edx
mov byte [ebp + 0xc4], dl
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
lea esi, [ecx + eax]
inc eax
mov dword [esp + 0x2c], eax
cmp byte [esi], 1
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], edx
jne 0x403cb3
lea esi, [ecx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
mov esi, dword [esi]
cmp esi, edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x38], edx
jle 0x4037c4
call fcn.0045a431
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x403dd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x78], ebx
mov byte [esp + 0x168], 0x12
mov esi, dword [ebp + 4]
mov eax, dword [esi + 0x2c]
add esi, 0x28
test eax, eax
jne 0x4035a3
xor ecx, ecx
jmp 0x4035ab
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 3
mov edi, dword [esi + 8]
mov edx, edi
sub edx, eax
sar edx, 3
cmp edx, ecx
jae 0x4035e2
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x5c], 0
mov eax, dword [esp + 0x5c]
push eax
push ecx
push 1
push edi
lea ecx, [esp + 0x88]
call fcn.00410220
add esp, 0x10
add edi, 8
mov dword [esi + 8], edi
jmp 0x4035f0
push edi
push esi
lea ecx, [esp + 0x80]
call fcn.0040c4d0
mov byte [esp + 0x168], 3
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403614
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x2c]
add eax, 0x28
mov eax, dword [eax + 8]
lea esi, [eax - 8]
mov eax, dword [esp + 0x20]
mov edi, dword [eax + ecx]
add ecx, 4
add eax, ecx
mov dword [esp + 0x2c], ecx
jne 0x40363a
xor ecx, ecx
jmp 0x403649
mov ecx, eax
lea ebx, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403640
sub ecx, ebx
push ecx
push eax
mov ecx, esi
call fcn.00414de0
mov eax, dword [esp + 0x2c]
add eax, edi
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
push 1
lea edx, [esp + 0xf0]
mov dword [esi + 4], ecx
push edx
mov ecx, esi
call fcn.004088e0
mov byte [esp + 0x168], 0x15
mov ebx, dword [esp + 0x54]
or ebx, 1
mov dword [esp + 0x54], ebx
mov eax, dword [eax]
push 0x487e18
push eax
call fcn.004645fa
add esp, 8
test eax, eax
sete al
test al, al
jne 0x4036ec
push 1
lea eax, [esp + 0xe8]
push eax
mov ecx, esi
call fcn.004088e0
mov dword [esp + 0x168], 0x16
or ebx, 2
mov dword [esp + 0x54], ebx
mov eax, dword [eax]
push 0x487e1c
push eax
call fcn.004645fa
add esp, 8
test eax, eax
sete al
mov byte [esp + 0x33], 0
test al, al
je 0x4036f1
mov byte [esp + 0x33], 1
mov eax, 0x15
mov dword [esp + 0x168], eax
test bl, 2
je 0x403733
and ebx, 0xfffffffd
mov dword [esp + 0x54], ebx
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0xe4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403733
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x168], 3
test bl, 1
je 0x403775
and ebx, 0xfffffffe
mov dword [esp + 0x54], ebx
mov byte [esp + 0x168], 3
mov eax, dword [esp + 0xec]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403775
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x33], 0
je 0x4037a7
mov esi, dword [ebp + 4]
mov edi, dword [esi + 0x30]
add esi, 0x28
mov ecx, edi
sub ecx, dword [esi + 4]
test ecx, 0xfffffff8
je 0x4037a7
mov edx, dword [esp + 0x10]
lea eax, [edi - 8]
push edx
push eax
call fcn.004105a0
add esp, 8
add dword [esi + 8], 0xfffffff8
mov eax, dword [esp + 0x38]
inc eax
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
jl 0x403566
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
xor edx, edx
lea esi, [ecx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
mov esi, dword [esi]
cmp esi, edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x38], edx
jle 0x403a44
call fcn.0045a431
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x403dd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0xac], ebx
mov byte [esp + 0x168], 0x1b
mov esi, dword [ebp + 4]
mov eax, dword [esi + 0x3c]
add esi, 0x38
test eax, eax
jne 0x403820
xor ecx, ecx
jmp 0x403828
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 3
mov edi, dword [esi + 8]
mov edx, edi
sub edx, eax
sar edx, 3
cmp edx, ecx
jae 0x403865
mov ecx, dword [esp + 0x10]
mov byte [esp + 0xf0], 0
mov eax, dword [esp + 0xf0]
push eax
push ecx
push 1
push edi
lea ecx, [esp + 0xbc]
call fcn.00410220
add esp, 0x10
add edi, 8
mov dword [esi + 8], edi
jmp 0x403873
push edi
push esi
lea ecx, [esp + 0xb4]
call fcn.0040c4d0
mov byte [esp + 0x168], 3
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403897
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x2c]
add eax, 0x38
mov eax, dword [eax + 8]
lea esi, [eax - 8]
mov eax, dword [esp + 0x20]
mov edi, dword [eax + ecx]
add ecx, 4
add eax, ecx
mov dword [esp + 0x2c], ecx
jne 0x4038bd
xor ecx, ecx
jmp 0x4038cb
mov ecx, eax
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4038c2
sub ecx, ebx
push ecx
push eax
mov ecx, esi
call fcn.00414de0
mov eax, dword [esp + 0x2c]
add eax, edi
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
push 1
lea edx, [esp + 0xc0]
mov dword [esi + 4], ecx
push edx
mov ecx, esi
call fcn.004088e0
mov byte [esp + 0x168], 0x1e
mov ebx, dword [esp + 0x54]
or ebx, 4
mov dword [esp + 0x54], ebx
mov eax, dword [eax]
push 0x487e18
push eax
call fcn.004645fa
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40396e
push 1
lea eax, [esp + 0xec]
push eax
mov ecx, esi
call fcn.004088e0
mov dword [esp + 0x168], 0x1f
or ebx, 8
mov dword [esp + 0x54], ebx
mov eax, dword [eax]
push 0x487e1c
push eax
call fcn.004645fa
add esp, 8
test eax, eax
sete al
mov byte [esp + 0x33], 0
test al, al
je 0x403973
mov byte [esp + 0x33], 1
mov eax, 0x1e
mov dword [esp + 0x168], eax
test bl, 8
je 0x4039b5
and ebx, 0xfffffff7
mov dword [esp + 0x54], ebx
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0xe8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4039b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x168], 3
test bl, 4
je 0x4039f7
and ebx, 0xfffffffb
mov dword [esp + 0x54], ebx
mov byte [esp + 0x168], 3
mov eax, dword [esp + 0xbc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4039f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x33], 0
je 0x403a29
mov esi, dword [ebp + 4]
mov edi, dword [esi + 0x40]
add esi, 0x38
mov ecx, edi
sub ecx, dword [esi + 4]
test ecx, 0xfffffff8
je 0x403a29
mov edx, dword [esp + 0x10]
lea eax, [edi - 8]
push edx
push eax
call fcn.004105a0
add esp, 8
add dword [esi + 8], 0xfffffff8
mov eax, dword [esp + 0x38]
inc eax
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
jl 0x4037e0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x38], 0
test ecx, ecx
jle 0x403cb3
call fcn.0045a431
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x403dd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0xc4], ebx
mov byte [esp + 0x168], 0x24
mov esi, dword [ebp + 4]
mov eax, dword [esi + 0x4c]
add esi, 0x48
test eax, eax
jne 0x403aa3
xor ecx, ecx
jmp 0x403aab
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 3
mov edi, dword [esi + 8]
mov edx, edi
sub edx, eax
sar edx, 3
cmp edx, ecx
jae 0x403ae8
mov ecx, dword [esp + 0x10]
mov byte [esp + 0xc0], 0
mov eax, dword [esp + 0xc0]
push eax
push ecx
push 1
push edi
lea ecx, [esp + 0xd4]
call fcn.00410220
add esp, 0x10
add edi, 8
mov dword [esi + 8], edi
jmp 0x403af6
push edi
push esi
lea ecx, [esp + 0xcc]
call fcn.0040c4d0
mov byte [esp + 0x168], 3
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403b1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x2c]
add eax, 0x48
mov eax, dword [eax + 8]
lea esi, [eax - 8]
mov eax, dword [esp + 0x20]
mov edi, dword [eax + ecx]
add ecx, 4
add eax, ecx
mov dword [esp + 0x2c], ecx
jne 0x403b40
xor ecx, ecx
jmp 0x403b4e
mov ecx, eax
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403b45
sub ecx, ebx
push ecx
push eax
mov ecx, esi
call fcn.00414de0
mov eax, dword [esp + 0x2c]
add eax, edi
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
push 1
lea edx, [esp + 0x68]
mov dword [esi + 4], ecx
push edx
mov ecx, esi
call fcn.004088e0
mov byte [esp + 0x168], 0x27
mov ebx, dword [esp + 0x54]
or ebx, 0x10
mov dword [esp + 0x54], ebx
mov eax, dword [eax]
push 0x487e18
push eax
call fcn.004645fa
add esp, 8
test eax, eax
sete al
test al, al
jne 0x403beb
push 1
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call fcn.004088e0
mov dword [esp + 0x168], 0x28
or ebx, 0x20
mov dword [esp + 0x54], ebx
mov eax, dword [eax]
push 0x487e1c
push eax
call fcn.004645fa
add esp, 8
test eax, eax
sete al
mov byte [esp + 0x33], 0
test al, al
je 0x403bf0
mov byte [esp + 0x33], 1
mov eax, 0x27
mov dword [esp + 0x168], eax
test bl, 0x20
je 0x403c2f
and ebx, 0xffffffdf
mov dword [esp + 0x54], ebx
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x168], 3
test bl, 0x10
je 0x403c6e
and ebx, 0xffffffef
mov dword [esp + 0x54], ebx
mov byte [esp + 0x168], 3
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x33], 0
je 0x403ca0
mov esi, dword [ebp + 4]
mov edi, dword [esi + 0x50]
add esi, 0x48
mov ecx, edi
sub ecx, dword [esi + 4]
test ecx, 0xfffffff8
je 0x403ca0
mov edx, dword [esp + 0x10]
lea eax, [edi - 8]
push edx
push eax
call fcn.004105a0
add esp, 8
add dword [esi + 8], 0xfffffff8
mov eax, dword [esp + 0x38]
inc eax
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
jl 0x403a63
mov eax, dword [esp + 0x170]
mov eax, dword [eax]
mov esi, dword [eax + 0x1e88]
add eax, 0x1e84
test esi, esi
jne 0x403ccf
xor ecx, ecx
jmp 0x403cd7
mov ecx, dword [eax + 0xc]
sub ecx, esi
sar ecx, 2
mov edx, dword [eax + 8]
mov edi, edx
sub edi, esi
sar edi, 2
cmp edi, ecx
jae 0x403cef
mov dword [edx], ebp
add edx, 4
mov dword [eax + 8], edx
jmp 0x403cfd
lea ecx, [esp + 0x4c]
push ecx
push 1
push edx
push eax
call fcn.004531d0
mov byte [esp + 0x168], 0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403d25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
inc eax
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x44], eax
jl 0x403100
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
xor esi, esi
lea edx, [ecx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
mov edx, dword [edx]
cmp edx, esi
mov dword [esp + 0xbc], edx
mov dword [esp + 0x44], esi
jle 0x4044a3
lea edx, [ecx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
mov edx, dword [edx]
lea esi, [ecx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
mov esi, dword [esi]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
mov eax, dword [esp + 0x170]
mov dword [esp + 0xc0], ecx
mov ecx, dword [eax]
mov eax, dword [ecx + 0x1e88]
mov ecx, dword [eax + edx*4]
push 0xe0
mov dword [esp + 0x54], edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x40], ecx
call fcn.00459f99
add esp, 4
mov dword [esp + 0x4c], eax
mov byte [esp + 0x168], 0x2c
test eax, eax
je 0x403ddf
push eax
call fcn.00405c60
mov ebp, eax
jmp 0x403de1
push 0x80004005
call fcn.00414d90
call fcn.00414cc0
xor ebp, ebp
mov byte [esp + 0x168], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov edi, dword [ecx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
add eax, ecx
mov dword [esp + 0x40], ebp
lea esi, [ebp + 0x20]
jne 0x403e0a
xor edx, edx
jmp 0x403e19
mov edx, eax
lea ebx, [edx + 1]
nop
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x403e10
sub edx, ebx
push edx
push eax
mov ecx, esi
call fcn.00414de0
mov eax, dword [esp + 0x48]
add dword [esp + 0x2c], edi
mov esi, dword [esp + 0x170]
mov ecx, eax
imul ecx, ecx, 0x58
mov edi, 1
mov dword [ebp + 0x10], edi
mov edx, dword [esi]
add ecx, dword [edx + 0x1f0c]
mov edx, dword [esp + 0x50]
push eax
push edx
lea eax, [ebp + 0x1c]
push str.Movement__d__d
mov dword [ebp + 4], ecx
push eax
mov byte [ebp + 0x14], 1
call fcn.004141b0
mov eax, dword [esi]
mov ecx, dword [eax + 0x1e8c]
sub ecx, dword [eax + 0x1e88]
add eax, 0x1e84
sar ecx, 2
mov dword [ebp], ecx
xor eax, eax
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi]
add esp, 0x10
mov dword [ebp + 0x18], ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov byte [esp + 0x168], 0x2e
lea ecx, [esp + 0x98]
mov dword [esp + 0xa8], edi
call fcn.00413a30
mov byte [esp + 0x168], 0x2f
mov esi, dword [ebp + 0x3c]
mov eax, dword [esi + 4]
lea ebx, [ebp + 0x38]
lea edx, [esp + 0x98]
push edx
push eax
push esi
call fcn.00413c50
mov ecx, ebx
mov edi, eax
call fcn.00413d00
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov byte [esp + 0x168], 0
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x403f05
push eax
call fcn.00459fc8
add esp, 4
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax]
add eax, 8
mov dword [ebp + 0x34], eax
mov dword [ebp + 0xc], 0xffffffff
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax]
mov dword [ebp + 0x44], eax
mov eax, dword [esp + 0x3c]
mov byte [ebp + 0x2c], 0
mov dword [ebp + 0x30], eax
mov cl, byte [eax + 0x15]
mov byte [ebp + 0x15], cl
mov byte [ebp + 0xc4], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
lea edx, [ecx + eax]
add eax, 4
xor edi, edi
mov dword [esp + 0x2c], eax
mov esi, dword [edx]
cmp esi, edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0x60], esi
jle 0x403f96
push esi
call fcn.00459fd3
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
add esp, 4
push esi
add ecx, edx
push ecx
push eax
mov dword [esp + 0x44], eax
call fcn.004691d0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
jmp 0x403f9a
mov dword [esp + 0x38], edi
add eax, esi
mov dword [esp + 0x2c], eax
lea edx, [ecx + eax]
inc eax
mov dword [esp + 0x2c], eax
cmp byte [edx], 1
jne 0x40426e
lea edx, [ecx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
mov edx, dword [edx]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x34], 0
test edx, edx
jle 0x4040f9
call fcn.0045a431
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x403dd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0xc4], ebx
mov byte [esp + 0x168], 0x33
mov esi, dword [ebp + 4]
mov eax, dword [esi + 0x2c]
add esi, 0x28
test eax, eax
jne 0x404011
xor ecx, ecx
jmp 0x404019
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 3
mov edi, dword [esi + 8]
mov edx, edi
sub edx, eax
sar edx, 3
cmp edx, ecx
jae 0x404050
mov byte [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push 1
push edi
lea ecx, [esp + 0xd4]
call fcn.00410220
add esp, 0x10
add edi, 8
mov dword [esi + 8], edi
jmp 0x40405e
push edi
push esi
lea ecx, [esp + 0xcc]
call fcn.0040c4d0
mov byte [esp + 0x168], 0
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404082
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x20]
add eax, 0x28
mov eax, dword [eax + 8]
lea esi, [eax - 8]
mov eax, dword [esp + 0x2c]
mov edi, dword [ecx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
add eax, ecx
jne 0x4040a8
xor ecx, ecx
jmp 0x4040b9
mov ecx, eax
lea ebx, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4040b0
sub ecx, ebx
push ecx
push eax
mov ecx, esi
call fcn.00414de0
mov eax, dword [esp + 0x2c]
add eax, edi
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [ecx]
inc eax
cmp eax, dword [esp + 0x4c]
mov dword [esi + 4], ecx
mov dword [esp + 0x34], eax
jl 0x403fd1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
lea edx, [ecx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
mov edx, dword [edx]
xor ebx, ebx
mov dword [esp + 0x4c], edx
test edx, edx
jle 0x4041f4
call fcn.0045a431
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x403dd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x88], eax
mov byte [esp + 0x168], 0x38
mov esi, dword [ebp + 4]
mov eax, dword [esi + 0x3c]
add esi, 0x38
test eax, eax
jne 0x404153
xor ecx, ecx
jmp 0x40415b
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 3
mov edi, dword [esi + 8]
mov edx, edi
sub edx, eax
sar edx, 3
cmp edx, ecx
jae 0x404192
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x64], 0
mov eax, dword [esp + 0x64]
push eax
push ecx
push 1
push edi
lea ecx, [esp + 0x98]
call fcn.00410220
add esp, 0x10
add edi, 8
mov dword [esi + 8], edi
jmp 0x4041a0
push edi
push esi
lea ecx, [esp + 0x90]
call fcn.0040c4d0
mov byte [esp + 0x168], 0
lea ecx, [esp + 0x88]
call fcn.004149b0
mov eax, dword [ebp + 4]
add eax, 0x38
mov eax, dword [eax + 8]
lea edi, [eax - 8]
push edi
lea esi, [esp + 0x18]
call fcn.00413f70
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
lea ecx, [edx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
inc ebx
cmp ebx, dword [esp + 0x4c]
mov dword [edi + 4], ecx
jl 0x404113
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ebx, dword [ecx]
test ebx, ebx
jle 0x40426e
lea ecx, [esp + 0xac]
call fcn.00414950
mov byte [esp + 0x168], 0x3b
mov edi, dword [ebp + 4]
add edi, 0x48
lea ecx, [esp + 0xac]
call fcn.004092e0
mov byte [esp + 0x168], 0
lea ecx, [esp + 0xac]
call fcn.004149b0
mov eax, dword [ebp + 4]
add eax, 0x48
mov eax, dword [eax + 8]
lea edi, [eax - 8]
push edi
lea esi, [esp + 0x18]
call fcn.00413f70
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
sub ebx, 1
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
mov dword [edi + 4], ecx
jne 0x404203
push 0x50
call fcn.00459f99
add esp, 4
mov dword [esp + 0x4c], eax
mov byte [esp + 0x168], 0x3d
xor edi, edi
cmp eax, edi
je 0x4042ab
mov dword [eax + 0x40], edi
mov dword [eax + 0x44], edi
mov dword [eax + 0x48], edi
mov byte [esp + 0x168], 0x3e
mov byte [eax + 0x4c], 0
mov byte [esp + 0x168], 0x3d
mov esi, eax
jmp 0x4042ad
xor esi, esi
mov byte [esp + 0x168], 0
push 0x50
push edi
push esi
call fcn.00467050
fldz
mov edx, dword [esp + 0x44]
fstp dword [esi + 0x10]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x68]
mov dword [esi + 0x24], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x1c], edx
mov dword [ebp + 0x24], esi
mov eax, dword [ebp + 0x7c]
lea esi, [ebp + 0x78]
add esp, 0xc
cmp eax, edi
jne 0x4042f3
xor ecx, ecx
jmp 0x4042fb
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
mov edx, dword [esi + 8]
mov edi, edx
sub edi, eax
sar edi, 2
cmp edi, ecx
jae 0x404317
mov eax, dword [esp + 0x3c]
mov dword [edx], eax
add edx, 4
mov dword [esi + 8], edx
jmp 0x404329
lea eax, [esp + 0x3c]
push eax
push 1
push edx
push esi
call fcn.004531d0
mov eax, dword [esp + 0x3c]
mov dword [eax + 0x10], 1
mov edi, dword [eax + 0x7c]
mov ecx, dword [eax + 0x80]
mov dword [esp + 0x34], edi
mov dword [esp + 0x4c], ecx
cmp edi, ecx
je 0x4043d7
mov edx, dword [esi + 4]
test edx, edx
jne 0x404354
xor ecx, ecx
jmp 0x40435c
mov ecx, dword [esi + 0xc]
sub ecx, edx
sar ecx, 2
mov eax, dword [esi + 8]
mov ebx, eax
sub ebx, edx
sar ebx, 2
cmp ebx, ecx
jae 0x404376
mov ecx, dword [edi]
mov dword [eax], ecx
add eax, 4
mov dword [esi + 8], eax
jmp 0x404380
push edi
push 1
push eax
push esi
call fcn.004531d0
mov eax, dword [edi]
mov edi, dword [eax + 0x7c]
add eax, 0x78
test edi, edi
jne 0x404390
xor ecx, ecx
jmp 0x404398
mov ecx, dword [eax + 0xc]
sub ecx, edi
sar ecx, 2
mov edx, dword [eax + 8]
mov ebx, edx
sub ebx, edi
sar ebx, 2
cmp ebx, ecx
jae 0x4043b0
mov dword [edx], ebp
add edx, 4
mov dword [eax + 8], edx
jmp 0x4043be
lea ecx, [esp + 0x40]
push ecx
push 1
push edx
push eax
call fcn.004531d0
mov edi, dword [esp + 0x34]
add edi, 4
mov dword [esp + 0x34], edi
cmp edi, dword [esp + 0x4c]
jne 0x404349
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 0x7c]
add eax, 0x78
test esi, esi
jne 0x4043e5
xor ecx, ecx
jmp 0x4043ed
mov ecx, dword [eax + 0xc]
sub ecx, esi
sar ecx, 2
mov edx, dword [eax + 8]
mov edi, edx
sub edi, esi
sar edi, 2
cmp edi, ecx
jae 0x404405
mov dword [edx], ebp
add edx, 4
mov dword [eax + 8], edx
jmp 0x404413
lea ecx, [esp + 0x40]
push ecx
push 1
push edx
push eax
call fcn.004531d0
mov edi, dword [esp + 0x170]
mov eax, dword [edi]
mov esi, dword [eax + 0x1e88]
add eax, 0x1e84
test esi, esi
jne 0x40442f
xor ecx, ecx
jmp 0x404437
mov ecx, dword [eax + 0xc]
sub ecx, esi
sar ecx, 2
mov edx, dword [eax + 8]
mov ebx, edx
sub ebx, esi
sar ebx, 2
cmp ebx, ecx
jae 0x40444f
mov dword [edx], ebp
add edx, 4
mov dword [eax + 8], edx
jmp 0x40445d
lea ecx, [esp + 0x40]
push ecx
push 1
push edx
push eax
call fcn.004531d0
mov eax, dword [esp + 0xc0]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x7c], eax
add edi, 0x1c
push edi
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], edx
call fcn.00409770
mov ecx, dword [esp + 0x5c]
mov dword [eax], ecx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0xbc]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
jl 0x403d61
xor esi, esi
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
cmp ecx, esi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x44], esi
jle 0x404718
mov edi, edi
lea ecx, [esp + 0x40]
call fcn.00414950
mov byte [esp + 0x168], 0x3f
lea edx, [esp + 0x40]
push edx
lea esi, [esp + 0x18]
call fcn.00413f70
push 0xe0
call fcn.00459f99
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x168], 0x40
test eax, eax
je 0x404506
push eax
call fcn.00405c60
mov esi, eax
jmp 0x404508
xor esi, esi
mov byte [esp + 0x168], 0x3f
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x24], eax
mov dword [esi + 4], eax
mov dword [esi + 8], 0xffffffff
mov byte [esi + 0x14], al
lea eax, [esp + 0x40]
lea ecx, [esi + 0x1c]
push eax
mov dword [esp + 0x38], esi
call fcn.00413d90
mov ecx, dword [esp + 0x170]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1e8c]
sub edx, dword [eax + 0x1e88]
add eax, 0x1e84
sar edx, 2
mov dword [esi], edx
mov eax, dword [ecx]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x98]
mov dword [esi + 0x18], eax
push edx
mov dword [esi + 0xc], ecx
call fcn.00413b00
mov byte [esp + 0x168], 0x41
mov edi, dword [esi + 0x3c]
lea ebx, [esi + 0x38]
push eax
mov eax, dword [edi + 4]
push eax
push edi
call fcn.00413c50
mov ecx, ebx
mov ebp, eax
call fcn.00413d00
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
mov byte [esp + 0x168], 0x3f
lea ecx, [esp + 0x98]
push ecx
call fcn.0043a740
mov eax, dword [esi + 0x3c]
mov eax, dword [eax]
mov edx, dword [esp + 0x170]
add eax, 8
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x3c]
mov eax, dword [eax]
mov dword [esi + 0x44], eax
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [esi + 0xc4], 0
mov eax, dword [edx]
mov ecx, dword [eax + 0x1e88]
add eax, 0x1e84
test ecx, ecx
jne 0x4045ee
xor edx, edx
jmp 0x4045f6
mov edx, dword [eax + 0xc]
sub edx, ecx
sar edx, 2
mov edi, dword [eax + 8]
mov ebx, edi
sub ebx, ecx
sar ebx, 2
cmp ebx, edx
jae 0x40460e
mov dword [edi], esi
add edi, 4
mov dword [eax + 8], edi
jmp 0x40461c
lea ecx, [esp + 0x34]
push ecx
push 1
push edi
push eax
call fcn.004531d0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
lea eax, [edx + ecx]
add ecx, 4
mov dword [esp + 0x2c], ecx
mov eax, dword [eax]
test eax, eax
jle 0x4046f4
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add eax, ecx
add ecx, 4
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x170]
mov edx, dword [ecx]
mov eax, dword [eax]
mov ecx, dword [edx + 0x1e88]
mov ebx, dword [ecx + eax*4]
mov ecx, dword [ebx + 0x8c]
lea eax, [ebx + 0x88]
mov dword [esp + 0x10], ebx
test ecx, ecx
jne 0x404679
xor edx, edx
jmp 0x404681
mov edx, dword [eax + 0xc]
sub edx, ecx
sar edx, 2
mov edi, dword [eax + 8]
mov ebp, edi
sub ebp, ecx
sar ebp, 2
cmp ebp, edx
jae 0x404699
mov dword [edi], esi
add edi, 4
mov dword [eax + 8], edi
jmp 0x4046a7
lea edx, [esp + 0x34]
push edx
push 1
push edi
push eax
call fcn.004531d0
mov edx, dword [esi + 0x8c]
lea edi, [esi + 0x88]
test edx, edx
jne 0x4046bb
xor eax, eax
jmp 0x4046c3
mov eax, dword [edi + 0xc]
sub eax, edx
sar eax, 2
mov ecx, dword [edi + 8]
mov ebp, ecx
sub ebp, edx
sar ebp, 2
cmp ebp, eax
jae 0x4046db
mov dword [ecx], ebx
add ecx, 4
mov dword [edi + 8], ecx
jmp 0x4046e9
lea eax, [esp + 0x10]
push eax
push 1
push ecx
push edi
call fcn.004531d0
sub dword [esp + 0x38], 1
jne 0x40463c
mov byte [esp + 0x168], 0
lea ecx, [esp + 0x40]
call fcn.004149b0
mov eax, dword [esp + 0x44]
inc eax
cmp eax, dword [esp + 0x58]
mov dword [esp + 0x44], eax
jl 0x4044c0
xor edi, edi
xor ebp, ebp
mov dword [esp + 0xd8], ebp
mov dword [esp + 0xdc], edi
mov dword [esp + 0xe0], edi
mov byte [esp + 0x168], 0x42
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x170]
lea eax, [edx + ecx]
add ecx, 4
mov dword [esp + 0x2c], ecx
mov eax, dword [eax]
cmp eax, edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x44], edi
jle 0x404f91
lea ecx, [esp + 0x40]
call fcn.00414950
mov byte [esp + 0x168], 0x43
lea eax, [esp + 0x40]
push eax
lea esi, [esp + 0x18]
call fcn.00413f70
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ebp, dword [ecx]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov byte [esp + 0x168], 0x44
push ebp
lea ecx, [esp + 0x7c]
call fcn.00408ad0
cmp ebp, edi
mov edx, dword [esp + 0x7c]
jle 0x404849
mov esi, dword [esp + 0x80]
mov dword [esp + 0x34], ebp
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x1e88]
lea ecx, [eax + ecx*4]
cmp edx, edi
jne 0x4047fb
xor eax, eax
jmp 0x404807
mov eax, dword [esp + 0x84]
sub eax, edx
sar eax, 2
mov edi, esi
sub edi, edx
sar edi, 2
cmp edi, eax
jae 0x404822
mov ecx, dword [ecx]
mov dword [esi], ecx
add esi, 4
mov dword [esp + 0x80], esi
jmp 0x40483e
push ecx
push 1
push esi
lea edx, [esp + 0x84]
push edx
call fcn.004531d0
mov esi, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
xor edi, edi
sub dword [esp + 0x34], 1
jne 0x4047d5
cmp ebp, edi
jne 0x404888
mov byte [esp + 0x168], 0x43
cmp edx, edi
je 0x404860
push edx
call fcn.00459fc8
add esp, 4
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov byte [esp + 0x168], 0x42
lea ecx, [esp + 0x40]
call fcn.004149b0
jmp 0x404f77
push 0xe0
call fcn.00459f99
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x168], 0x45
cmp eax, edi
je 0x4048af
push eax
call fcn.00405c60
mov ebp, eax
jmp 0x4048b1
xor ebp, ebp
mov byte [esp + 0x168], 0x44
xor eax, eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [ebp + 4], edx
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov dword [ebp + 8], ecx
lea edx, [esp + 0x40]
lea ecx, [ebp + 0x1c]
push edx
mov dword [esp + 0x4c], ebp
mov byte [ebp + 0x14], 0
call fcn.00413d90
mov ecx, dword [esp + 0x170]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1e8c]
sub edx, dword [eax + 0x1e88]
add eax, 0x1e84
sar edx, 2
mov dword [ebp], edx
mov eax, dword [ecx]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x58]
mov dword [ebp + 0x18], eax
lea eax, [esp + 0x110]
add ecx, edx
push eax
mov dword [ebp + 0xc], ecx
call fcn.00413b00
mov byte [esp + 0x168], 0x46
mov esi, dword [ebp + 0x3c]
mov ecx, dword [esi + 4]
lea ebx, [ebp + 0x38]
push eax
push ecx
push esi
call fcn.00413c50
mov ecx, ebx
mov edi, eax
call fcn.00413d00
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov byte [esp + 0x168], 0x44
lea edx, [esp + 0x110]
push edx
call fcn.0043a740
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax]
add eax, 8
mov dword [ebp + 0x34], eax
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax]
mov dword [ebp + 0x44], eax
xor esi, esi
cmp dword [esp + 0x3c], esi
mov byte [ebp + 0x2c], 0
mov dword [ebp + 0x30], esi
mov byte [ebp + 0xc4], 0
jle 0x4049c1
mov eax, dword [esp + 0x7c]
mov ebx, dword [eax + esi*4]
lea edi, [esp + 0x10]
lea edx, [ebp + 0x88]
mov dword [esp + 0x10], ebx
call fcn.00408e60
lea edx, [ebx + 0x88]
lea edi, [esp + 0x48]
call fcn.00408e60
inc esi
cmp esi, dword [esp + 0x3c]
jl 0x404991
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ebx, dword [ecx]
test ebx, ebx
jle 0x404a60
lea edi, [ebp + 0x98]
lea ecx, [esp + 0x5c]
call fcn.00414950
mov byte [esp + 0x168], 0x47
lea edx, [esp + 0x5c]
push edx
lea esi, [esp + 0x18]
call fcn.00413f70
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0xcc]
push eax
call fcn.00413f10
mov byte [esp + 0x168], 0x48
mov ecx, eax
call fcn.004092e0
mov byte [esp + 0x168], 0x47
lea ecx, [esp + 0xc4]
call fcn.004149b0
mov byte [esp + 0x168], 0x44
lea ecx, [esp + 0x5c]
call fcn.004149b0
sub ebx, 1
jne 0x4049e2
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x50], 0
jle 0x404b26
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x50]
mov eax, dword [ecx + edx*4]
lea edx, [esp + 0x34]
lea edi, [ebp + 0xa8]
mov dword [esp + 0x34], eax
call fcn.0041b160
mov ebx, dword [ebp + 0x9c]
mov esi, eax
mov eax, dword [ebp + 0xa0]
mov dword [esp + 0x10], eax
cmp ebx, eax
je 0x404b13
jmp 0x404ab0
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0xa0]
mov ecx, dword [ecx + 0x9c]
push ebx
push eax
push ecx
call fcn.004133f0
mov ecx, dword [esi + 4]
add esp, 0xc
mov dword [esp + 0x38], eax
test ecx, ecx
jne 0x404ada
xor edx, edx
jmp 0x404ae2
mov edx, dword [esi + 0xc]
sub edx, ecx
sar edx, 2
mov edi, dword [esi + 8]
mov eax, edi
sub eax, ecx
sar eax, 2
cmp eax, edx
jae 0x404afe
mov ecx, dword [esp + 0x38]
mov dword [edi], ecx
add edi, 4
mov dword [esi + 8], edi
jmp 0x404b0a
lea edx, [esp + 0x38]
push edx
push edi
push esi
call fcn.0043e300
add ebx, 8
cmp ebx, dword [esp + 0x10]
jne 0x404ab0
mov eax, dword [esp + 0x50]
inc eax
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
jl 0x404a73
mov eax, dword [esp + 0x170]
mov edx, dword [eax]
add edx, 0x1e84
lea edi, [esp + 0x48]
xor ebx, ebx
call fcn.00408e60
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov byte [esp + 0x168], 0x4a
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov byte [esp + 0x168], 0x4b
mov ecx, dword [ebp + 0x8c]
mov eax, dword [ecx]
mov esi, dword [eax + 0x7c]
add eax, 0x78
mov eax, dword [ecx]
add eax, 0x78
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
cmp esi, eax
je 0x404c0a
mov ecx, dword [esi]
cmp byte [ecx + 0x14], 0
je 0x404c01
mov edi, esi
lea edx, [esp + 0x88]
call fcn.00408e60
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x168], 0x4c
lea ecx, [esp + 0x98]
lea edi, [esp + 0x68]
call fcn.00409b60
mov byte [esp + 0x168], 0x4b
mov edx, dword [esp + 0x70]
add edx, 0xfffffff0
mov edi, esi
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
call fcn.00408e60
add esi, 4
cmp esi, dword [esp + 0x10]
jne 0x404b93
mov ecx, dword [esp + 0x90]
sub ecx, dword [esp + 0x8c]
sar ecx, 2
mov dword [esp + 0x10], ecx
cmp ecx, ebx
je 0x404ecf
mov eax, dword [ebp + 0x8c]
mov edx, dword [ebp + 0x90]
add eax, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x64], edx
cmp eax, edx
je 0x404cde
jmp 0x404c58
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov edx, dword [eax + 0x80]
sub edx, dword [eax + 0x7c]
sar edx, 2
cmp edx, ecx
jne 0x404ecf
mov ecx, dword [eax + 0x80]
mov edi, dword [eax + 0x7c]
mov ebx, dword [esp + 0x8c]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x4c], ecx
cmp edi, ecx
je 0x404cc7
lea ebx, [ebx]
cmp ebx, dword [esp + 0x90]
je 0x404cc7
mov eax, dword [edi]
cmp byte [eax + 0x14], 0
je 0x404cbd
mov ecx, dword [ebx]
mov edx, dword [eax + 4]
cmp edx, dword [ecx + 4]
jne 0x404ecd
mov edx, esi
call fcn.00408e60
mov ecx, dword [esp + 0x4c]
add ebx, 4
add edi, 4
add esi, 0x10
cmp edi, ecx
jne 0x404c90
mov eax, dword [esp + 0x3c]
add eax, 4
xor ebx, ebx
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0x64]
jne 0x404c50
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0x90]
je 0x404ecf
mov ecx, dword [esp + 0x6c]
add ecx, 8
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ecx
jmp 0x404d10
mov edx, dword [eax]
cmp byte [edx + 0x14], 0
je 0x404ead
push 0xe0
call fcn.00459f99
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x168], 0x4d
cmp eax, ebx
je 0x404d43
push eax
call fcn.00405c60
mov esi, eax
jmp 0x404d45
xor esi, esi
mov byte [esp + 0x168], 0x4b
mov edi, dword [esp + 0x3c]
mov eax, dword [edi]
add eax, 0x20
lea ecx, [esi + 0x20]
push eax
mov dword [esp + 0x54], esi
call fcn.00413d90
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov byte [esi + 0x2c], al
mov byte [esi + 0x15], al
mov byte [esi + 0xc4], al
mov eax, dword [esp + 0x38]
sar eax, 2
push eax
mov byte [esi + 0x14], 1
mov dword [esp + 0x50], eax
mov eax, dword [ebp]
push eax
lea ecx, [esi + 0x1c]
push str.FMovement__d__d
push ecx
call fcn.004141b0
mov dword [esi + 0x30], ebp
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x180]
mov dword [esi + 4], edx
mov ecx, dword [eax]
add esp, 0x10
lea edx, [esp + 0xf4]
push edx
mov dword [esi + 0x18], ecx
call fcn.00413b00
mov byte [esp + 0x168], 0x4e
mov edi, dword [esi + 0x3c]
push eax
mov eax, dword [edi + 4]
push eax
push edi
call fcn.00413c50
lea ecx, [esi + 0x38]
mov ebx, eax
call fcn.00413d00
mov dword [edi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
mov byte [esp + 0x168], 0x4b
lea ecx, [esp + 0xf4]
push ecx
call fcn.0043a740
mov eax, dword [esi + 0x3c]
mov eax, dword [eax]
add eax, 8
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x3c]
mov eax, dword [eax]
lea edx, [esi + 0x88]
lea edi, [esp + 0x48]
mov dword [esi + 0x44], eax
call fcn.00408e60
lea edx, [ebp + 0xb4]
lea edi, [esp + 0x50]
call fcn.00408e60
mov eax, dword [esp + 0x34]
mov ebx, dword [eax - 4]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
cmp ebx, eax
je 0x404e77
lea ebx, [ebx]
mov edx, dword [ebx]
add edx, 0x88
lea edi, [esp + 0x50]
call fcn.00408e60
mov edx, dword [ebx]
add edx, 0xb4
call fcn.00408e60
add ebx, 4
cmp ebx, dword [esp + 0x10]
jne 0x404e50
mov eax, dword [esp + 0x4c]
mov edx, dword [ebp]
lea ecx, [esp + 0xac]
mov dword [esp + 0xb0], eax
push ecx
lea eax, [esp + 0xd8]
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb8], esi
call fcn.00409a90
mov eax, dword [esp + 0x3c]
xor ebx, ebx
add dword [esp + 0x38], 4
add dword [esp + 0x34], 0x10
add eax, 4
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0x90]
jne 0x404d10
jmp 0x404ecf
xor ebx, ebx
mov byte [esp + 0x168], 0x4a
mov esi, dword [esp + 0x6c]
cmp esi, ebx
je 0x404ef9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x70]
push edx
push eax
mov eax, esi
call fcn.00453670
push esi
call fcn.00459fc8
add esp, 0xc
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov byte [esp + 0x168], 0x44
mov eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x404f21
push eax
call fcn.00459fc8
add esp, 4
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov byte [esp + 0x168], 0x43
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00459fc8
add esp, 4
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov byte [esp + 0x168], 0x42
lea ecx, [esp + 0x40]
call fcn.004149b0
mov ebx, dword [esp + 0x170]
xor edi, edi
mov eax, dword [esp + 0x44]
inc eax
cmp eax, dword [esp + 0x60]
mov dword [esp + 0x44], eax
jl 0x404764
mov ebp, dword [esp + 0xd8]
cmp ebp, dword [esp + 0xdc]
je 0x405032
add ebp, 8
mov eax, dword [ebx]
mov esi, dword [eax + 0x1e8c]
sub esi, dword [eax + 0x1e88]
mov edx, dword [ebp]
add eax, 0x1e84
sar esi, 2
mov dword [edx], esi
mov eax, dword [ebp]
lea ecx, [ebx + 0x1c]
mov dword [eax + 0xc], esi
lea eax, [ebp - 8]
push ecx
call fcn.00409770
mov dword [eax], esi
mov edx, dword [ebx]
add edx, 0x1e84
mov edi, ebp
call fcn.00408e60
mov eax, dword [ebp]
lea edi, [eax + 0x30]
lea edx, [eax + 0xb4]
call fcn.00408e60
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x30]
mov edi, dword [eax + 0xb8]
mov esi, dword [eax + 0xbc]
cmp edi, esi
je 0x40501f
mov eax, dword [ebp]
cmp dword [edi], eax
je 0x405018
lea edx, [eax + 0xb4]
call fcn.00408e60
add edi, 4
cmp edi, esi
jne 0x405006
add ebp, 0xc
lea edx, [ebp - 8]
cmp edx, dword [esp + 0xdc]
jne 0x404fa1
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add eax, ecx
add ecx, 4
mov dword [esp + 0x2c], ecx
mov eax, dword [eax]
test eax, eax
jle 0x405183
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
lea eax, [edx + ecx]
xor edi, edi
add ecx, 4
mov dword [esp + 0x2c], ecx
mov esi, dword [eax]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov byte [esp + 0x168], 0x4f
lea eax, [esi + esi]
push eax
lea ecx, [esp + 0x6c]
call fcn.00408ad0
cmp esi, edi
jle 0x4050f4
mov ebx, dword [esp + 0x170]
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x1e88]
mov ecx, dword [ecx]
mov ebp, dword [eax + ecx*4]
lea edi, [esp + 0x10]
lea edx, [esp + 0x68]
mov dword [esp + 0x10], ebp
call fcn.00408e60
mov edi, dword [ebp + 0x7c]
cmp edi, dword [ebp + 0x80]
je 0x4050ed
push edi
lea esi, [esp + 0x6c]
call fcn.00438e90
add edi, 4
add esp, 4
cmp edi, dword [ebp + 0x80]
jne 0x4050d5
sub dword [esp + 0x58], 1
jne 0x40509b
mov esi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x70]
mov ebp, esi
cmp esi, ebx
je 0x405155
mov ecx, ebx
sub ecx, esi
sar ecx, 2
dec ecx
mov dword [esp + 0x10], ecx
mov edx, dword [ebp]
mov eax, dword [esp + 0x10]
mov dword [edx + 0x10], 1
mov ecx, dword [ebp]
push eax
add ecx, 0x78
call fcn.00408ad0
mov edi, esi
mov edi, edi
mov eax, dword [ebp]
cmp eax, dword [edi]
je 0x405147
push edi
lea esi, [eax + 0x78]
call fcn.00438e90
mov esi, dword [esp + 0x70]
add esp, 4
add edi, 4
cmp edi, ebx
jne 0x405130
add ebp, 4
cmp ebp, ebx
jne 0x405112
mov byte [esp + 0x168], 0x42
xor edi, edi
cmp esi, edi
je 0x40516c
push esi
call fcn.00459fc8
add esp, 4
sub dword [esp + 0x34], 1
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
jne 0x405051
mov ebx, dword [esp + 0x170]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x1e8c]
sub ecx, dword [eax + 0x1e88]
lea edx, [eax + 0x1e84]
sar ecx, 2
call fcn.00408bb0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
xor esi, esi
cmp ecx, esi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x48], esi
jle 0x405b39
fld1
add ebx, 0x18
fstp dword [esp + 0x68]
push 0x1b8
call fcn.00459f99
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x168], 0x50
mov ebp, dword [esp + 0x170]
test eax, eax
je 0x405204
mov edx, dword [ebp]
push edx
push eax
call fcn.00435120
jmp 0x405206
xor eax, eax
mov byte [esp + 0x168], 0x42
mov edx, dword [ebp]
add edx, 0x1ea4
mov edi, ebx
mov dword [ebx], eax
call fcn.00408e60
mov eax, dword [ebp]
mov ecx, dword [ebx]
add eax, 0x1e84
push eax
add ecx, 0xfc
push ecx
call fcn.004297c0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
lea ecx, [edx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
mov eax, dword [ebx]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
mov edx, dword [ebx]
mov dword [edx + 0xc], ecx
mov eax, dword [ebx]
add eax, 0x88
push eax
lea esi, [esp + 0x18]
call fcn.00413f70
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
mov edx, dword [ebx]
mov dword [edx + 0x28], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
inc eax
mov dword [esp + 0x2c], eax
mov cl, byte [ecx]
mov edx, dword [ebx]
mov byte [edx + 0x20], cl
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
inc eax
mov dword [esp + 0x2c], eax
cmp byte [ecx], 0
je 0x4052c8
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [ebx]
mov dword [edx + 0x28], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x28]
mov edx, ecx
shr edx, 8
movzx esi, cl
movzx edx, dl
fld dword [esi*4 + 0x4ab348]
shr ecx, 0x10
fstp dword [esp + 0x6c]
movzx ecx, cl
fld dword [edx*4 + 0x4ab348]
fstp dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
fld dword [ecx*4 + 0x4ab348]
mov ecx, dword [esp + 0x68]
mov dword [eax + 0xc8], ecx
fstp dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
fldz
mov dword [eax + 0xcc], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x1c10]
mov ecx, dword [ebx]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x1c14]
mov ecx, dword [ebx]
mov dword [ecx + 0x14], edx
mov eax, dword [ebx]
fst qword [eax + 0x30]
mov ecx, dword [ebx]
fst qword [ecx + 0x38]
mov edx, dword [ebx]
fst qword [edx + 0x58]
mov eax, dword [ebx]
fstp qword [eax + 0x60]
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + 0x18], ecx
mov eax, dword [ebx]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebx]
mov eax, dword [esp + 0x48]
mov dword [edx + 4], eax
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add eax, edx
add edx, 4
mov dword [esp + 0x2c], edx
mov eax, dword [eax]
cmp eax, ecx
jle 0x405452
mov ebp, eax
jmp 0x405390
lea ecx, [esp + 0x40]
call fcn.00414950
mov byte [esp + 0x168], 0x51
lea ecx, [esp + 0x40]
push ecx
lea esi, [esp + 0x18]
call fcn.00413f70
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
lea edx, [ecx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
cmp dword [edx], 0
jne 0x4053ea
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov edx, dword [ebx]
mov esi, dword [ecx]
add edx, 0x158
push edx
lea edi, [esp + 0x44]
call fcn.00413210
mov dword [eax], esi
jmp 0x405438
lea ecx, [esp + 0x34]
call fcn.00414950
mov byte [esp + 0x168], 0x52
lea eax, [esp + 0x34]
push eax
lea esi, [esp + 0x18]
call fcn.00413f70
mov ecx, dword [ebx]
add ecx, 0x164
push ecx
lea edi, [esp + 0x44]
call fcn.004090d0
lea edx, [esp + 0x34]
push edx
mov ecx, eax
call fcn.00413d90
mov byte [esp + 0x168], 0x51
lea ecx, [esp + 0x34]
call fcn.004149b0
mov byte [esp + 0x168], 0x42
lea ecx, [esp + 0x40]
call fcn.004149b0
sub ebp, 1
jne 0x405390
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add eax, ecx
add ecx, 4
mov dword [esp + 0x2c], ecx
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], 0
test eax, eax
jle 0x405a84
fld1
fstp dword [esp + 0xc4]
add dword [esp + 0x2c], 4
push 0xc0
call fcn.00459f99
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x168], 0x53
test eax, eax
je 0x4054b8
mov ecx, dword [esp + 0x170]
mov edx, dword [ecx]
push edx
push eax
call fcn.0041e1f0
mov ebp, eax
jmp 0x4054ba
xor ebp, ebp
mov byte [esp + 0x168], 0x42
mov edx, dword [ebx]
add edx, 0xdc
lea edi, [esp + 0x10]
mov dword [esp + 0x10], ebp
call fcn.00409090
lea edi, [ebp + 0x50]
push edi
lea esi, [esp + 0x18]
call fcn.00413f70
call fcn.00414260
mov eax, dword [esp + 0x44]
mov dword [ebp + 0x4c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
inc eax
mov dword [esp + 0x2c], eax
movsx edx, byte [ecx]
mov dword [ebp + 8], edx
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
lea eax, [edx + ecx]
add ecx, 4
mov dword [esp + 0x2c], ecx
mov eax, dword [eax]
add edx, ecx
add ecx, 4
mov dword [esp + 0x2c], ecx
mov ecx, eax
fld dword [edx]
mov edx, dword [esp + 0xc4]
fstp dword [esp + 0x10]
movzx esi, al
fld dword [esp + 0x10]
fmul qword [0x48a3b8]
shr ecx, 8
movzx ecx, cl
fstp qword [ebp + 0x58]
fld dword [esi*4 + 0x4ab348]
fstp dword [esp + 0xc8]
shr eax, 0x10
movzx eax, al
fld dword [ecx*4 + 0x4ab348]
fstp dword [esp + 0xcc]
mov ecx, dword [esp + 0xcc]
fld dword [eax*4 + 0x4ab348]
mov eax, dword [esp + 0xc8]
mov dword [ebp + 0x78], edx
fstp dword [esp + 0xd0]
mov edx, dword [esp + 0xd0]
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x80], ecx
mov eax, ebp
mov dword [ebp + 0x84], edx
call fcn.00436050
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
fld dword [ecx]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [ebp + 0x18]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
lea ecx, [edx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
fld dword [ecx]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [ebp + 0x1c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
fld dword [ecx]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [ebp + 0x20]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
lea ecx, [edx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
fld dword [ecx]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [ebp + 0x2c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
fld dword [ecx]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [ebp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
lea ecx, [edx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
fld dword [ecx]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [ebp + 0x24]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
fld dword [ecx]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [ebp + 0x28]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
lea ecx, [edx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
fld dword [ecx]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [ebp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
fld dword [ecx]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [ebp + 0x38]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
lea edi, [esi + eax]
inc eax
mov dword [esp + 0x2c], eax
mov cl, byte [edi]
lea edi, [esi + eax]
add eax, 4
mov dword [esp + 0x2c], eax
mov edx, dword [edi]
add esi, eax
inc eax
mov dword [esp + 0x2c], eax
mov al, byte [esi]
mov byte [ebp + 0x54], al
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
add esi, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov esi, dword [esi]
mov dword [ebp + 0x98], esi
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
add esi, eax
inc eax
mov dword [esp + 0x2c], eax
mov al, byte [esi]
mov byte [ebp + 0x9c], al
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
add esi, eax
inc eax
mov dword [esp + 0x2c], eax
mov al, byte [esi]
mov byte [ebp + 0x9d], al
test cl, cl
je 0x40579e
fld1
mov eax, edx
fstp dword [esp + 0xac]
movzx esi, dl
shr eax, 8
movzx eax, al
fld dword [esi*4 + 0x4ab348]
fstp dword [esp + 0xb0]
shr edx, 0x10
movzx ecx, dl
fld dword [eax*4 + 0x4ab348]
fstp dword [esp + 0xb4]
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
fld dword [ecx*4 + 0x4ab348]
mov ecx, dword [esp + 0xac]
mov dword [ebp + 0x68], ecx
fstp dword [esp + 0xb8]
mov ecx, dword [esp + 0xb8]
mov dword [ebp + 0x6c], edx
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x74], ecx
jmp 0x4057c1
mov edx, dword [0x4ab2c4]
mov dword [ebp + 0x68], edx
mov eax, dword [0x4ab2c8]
mov dword [ebp + 0x6c], eax
mov ecx, dword [0x4ab2cc]
mov dword [ebp + 0x70], ecx
mov edx, dword [0x4ab2d0]
mov dword [ebp + 0x74], edx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add eax, ecx
add ecx, 4
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax]
mov esi, ebp
mov dword [esp + 0x58], ecx
call fcn.004362a0
test al, al
je 0x405821
mov edx, dword [esp + 0x170]
mov eax, dword [edx]
cmp dword [eax + 0x1b7c], 0xffffffff
jne 0x405821
mov ecx, dword [eax + 0x1c14]
mov edx, dword [eax + 0x1c10]
push 0
push 1
push ecx
push edx
lea edi, [eax + 0x1684]
call fcn.0044ff90
mov ecx, dword [esp + 0x170]
mov edx, dword [ecx]
mov dword [edx + 0x1b7c], eax
cmp dword [esp + 0x58], 0
jle 0x405a71
mov eax, dword [esp + 0x58]
mov dword [esp + 0x50], eax
jmp 0x405840
lea ecx, [esp + 0x110]
push ecx
call fcn.00413940
mov byte [esp + 0x168], 0x54
mov esi, dword [ebx]
mov edi, dword [esi + 0x110]
mov edx, dword [edi + 4]
add esi, 0x10c
push eax
push edx
push edi
call fcn.0040bc30
mov ecx, esi
mov ebp, eax
call fcn.0040bce0
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
mov byte [esp + 0x168], 0x42
lea eax, [esp + 0x110]
push eax
call fcn.00405dc0
mov eax, dword [ebx]
mov ecx, dword [eax + 0x110]
mov ebp, dword [ecx + 4]
add eax, 0x10c
mov eax, dword [esp + 0x2c]
add eax, 4
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x20]
lea ecx, [edx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add ebp, 8
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
mov dword [ebp + 4], ecx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
lea ecx, [edx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
mov dword [ebp + 8], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
mov dword [ebp + 0xc], ecx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
lea ecx, [edx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
fld dword [ecx]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [ebp + 0x10]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx]
lea eax, [esp + 0x98]
call fcn.0040f4b0
mov edx, dword [eax]
mov dword [ebp + 0x28], edx
mov ecx, dword [eax + 4]
mov dword [ebp + 0x2c], ecx
mov edx, dword [eax + 8]
mov dword [ebp + 0x30], edx
mov eax, dword [eax + 0xc]
mov dword [ebp + 0x34], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
lea edx, [ecx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
mov edx, dword [edx]
lea esi, [ecx + eax]
add eax, 4
mov dword [esp + 0x2c], eax
mov esi, dword [esi]
add ecx, eax
add eax, 4
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
mov ecx, dword [esp + 0x44]
mov dword [ebp + 0x14], edx
mov edx, dword [esp + 0x170]
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x38], ecx
mov dword [ebp + 0x18], esi
mov ecx, dword [edx]
mov edx, dword [ecx + 0x1e88]
mov eax, dword [edx + eax*4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
lea eax, [edx + ecx]
add ecx, 4
mov dword [esp + 0x2c], ecx
mov eax, dword [eax]
test eax, eax
jle 0x405a10
lea edi, [ebp + 0x3c]
mov dword [esp + 0x58], eax
lea ecx, [ecx]
lea ecx, [esp + 0x38]
call fcn.00414950
mov byte [esp + 0x168], 0x55
lea eax, [esp + 0x38]
push eax
lea esi, [esp + 0x18]
call fcn.00413f70
lea edx, [esp + 0x38]
call fcn.00409710
mov byte [esp + 0x168], 0x42
lea ecx, [esp + 0x38]
call fcn.004149b0
sub dword [esp + 0x58], 1
jne 0x4059d0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
lea eax, [edx + ecx]
add ecx, 4
mov dword [esp + 0x2c], ecx
mov esi, dword [eax]
test esi, esi
jle 0x405a4b
push esi
call fcn.00459fd3
mov dword [ebp + 0x20], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
add esp, 4
push esi
add edx, ecx
push edx
push eax
call fcn.004691d0
add esp, 0xc
jmp 0x405a52
mov dword [ebp + 0x20], 0
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x24], esi
add dword [esp + 0x2c], esi
cmp dword [eax + 0x24], 0
jne 0x405a66
mov dword [eax + 0x24], ebp
sub dword [esp + 0x50], 1
jne 0x405840
mov eax, dword [esp + 0x44]
inc eax
cmp eax, dword [esp + 0x4c]
mov dword [esp + 0x44], eax
jl 0x405482
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add eax, ecx
add ecx, 4
mov dword [esp + 0x2c], ecx
mov eax, dword [eax]
xor ebp, ebp
mov dword [esp + 0x4c], eax
test eax, eax
jle 0x405b02
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
lea eax, [edx + ecx]
add ecx, 4
mov dword [esp + 0x2c], ecx
mov eax, dword [eax]
mov ecx, dword [esp + 0x170]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
lea esi, [eax + 0x1b5c]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x68]
mov ecx, esi
call fcn.00409030
mov esi, dword [esi + 4]
mov eax, dword [esp + 0x64]
cmp eax, esi
je 0x405be0
mov edx, dword [ebx]
lea edi, [eax + 0x10]
add edx, 0x1a0
call fcn.00409090
inc ebp
cmp ebp, dword [esp + 0x4c]
jl 0x405aa5
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add eax, ecx
add ecx, 4
mov dword [esp + 0x2c], ecx
mov eax, dword [eax]
mov ecx, dword [ebx]
mov dword [ecx + 0x1b0], eax
mov eax, dword [esp + 0x48]
inc eax
cmp eax, dword [esp + 0x60]
mov dword [esp + 0x48], eax
jl 0x4051d4
mov ebx, dword [esp + 0x170]
xor esi, esi
mov eax, dword [ebx]
lea edx, [esp + 0x14]
push edx
add eax, 0x1ba8
push eax
mov ecx, ebx
call fcn.00405ef0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x168], 0
mov eax, dword [esp + 0xd8]
cmp eax, esi
je 0x405b79
push eax
call fcn.00459fc8
add esp, 4
mov dword [esp + 0xd8], esi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xe0], esi
mov dword [esp + 0x168], 0xffffffff
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], vtable.bin.0
cmp eax, esi
je 0x405bc5
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x15c
ret 8
push 0x38
push str.Invalid_image_handle_referenced_in_layout__Davos_fault_
lea ecx, [esp + 0xfc]
mov dword [esp + 0x114], 0xf
mov dword [esp + 0x110], 0
mov byte [esp + 0x100], 0
call fcn.00415040
mov byte [esp + 0x168], 0x56
lea edx, [esp + 0xf4]
push edx
lea eax, [esp + 0x114]
push eax
call fcn.00415650
push 0x49aa24
lea ecx, [esp + 0x114]
push ecx
call fcn.00466bcb
int1
xor dword [eax], eax
add al, 0x32
inc eax
add byte [edx + esi], cl
inc eax
add byte [edi], bl
xor al, byte [eax]
daa
xor al, byte [eax]
cmp dh, byte [edx]
inc eax
add ah, cl
int3