Function at 0x409700
Capabilities:
Get common file path
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41f0d8
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x427e50]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x427e50]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
fldz
xor esi, esi
xor eax, eax
mov word [esp + 0x50], ax
mov dword [esp + 0x60], esi
mov dword [esp + 0x40], esi
fst qword [esp + 0x44]
mov dword [esp + 0x34], esi
fstp qword [esp + 0x54]
fldz
xor ecx, ecx
mov word [esp + 0x38], cx
xor edx, edx
mov word [esp + 0x20], dx
mov word [esp + 0x3c], ax
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
mov dword [esp + 0x64], esi
fld qword [esp + 0x54]
mov dword [esp + 0x68], esi
fsub qword [0x420ad8]
fsub qword [0x420ad0]
fsubp st(1)
call fcn.0040bcd0
mov dword [esp + 0x40], eax
fld qword [esp + 0x54]
fsub qword [0x420378]
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], esi
mov byte [esp + 0x9c], 0
fstp qword [esp + 0x54]
push 0x118
mov dword [esp + 0x10c], esi
call fcn.0040bf13
push eax
mov dword [esp + 0x9c], eax
call fcn.00402630
add esp, 8
push 0
call fcn.0040bbfa
mov ecx, dword [esp + 0x6c]
mov edi, edx
add esp, 4
cmp edi, ecx
mov esi, eax
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], edi
jg 0x40982a
jl 0x40981c
cmp esi, dword [esp + 0x64]
jae 0x40982a
xor ecx, ecx
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], ecx
mov eax, esi
sub eax, dword [esp + 0x64]
mov edx, edi
sbb edx, ecx
mov dword [esp + 0x18], edx
js 0x40a745
jg 0x40984b
cmp eax, 0x708
jbe 0x40a745
mov ax, word [0x425344]
movzx ecx, word [esp + 0x3c]
movsx edx, cx
movzx ecx, word [esp + 0x20]
movsx ecx, cx
cwde
sub ecx, edx
mov edx, dword [0x425638]
dec dword [0x425638]
add eax, 0x8d9c4a2a
sub ecx, 0x397ee86c
add edx, eax
cmp edx, ecx
jne 0x4098fa
mov ax, word [0x4277f0]
movsx ecx, ax
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
fsub qword [esp + 0x44]
mov dx, word [esp + 0x38]
inc dword [esp + 0x38]
movsx eax, dx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fsubp st(1)
fcomp qword [0x420ac8]
fnstsw ax
fld qword [esp + 0x44]
fld1
fsub st(1), st(0)
fxch st(1)
fstp qword [esp + 0x44]
test ah, 0x41
jp 0x409930
fadd qword [0x425458]
fstp qword [0x425458]
fld qword [0x425458]
mov cx, word [0x4254ac]
movsx edx, cx
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
faddp st(1)
call fcn.0040bcd0
mov word [0x4254ac], ax
jmp 0x409932
inc word [0x42633c]
mov ax, word [0x4255a4]
mov cx, word [0x42633c]
cwde
movsx edx, cx
sub edx, eax
add edx, 0x2900d95b
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
fmul qword [0x425300]
fstp qword [0x425300]
jmp 0x409932
fstp st(0)
mov eax, 1
add dword [0x4256a0], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [0x4256a0]
lea ecx, [edx + ecx + 0x67210a83]
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
mov dword [esp + 0x64], esi
shr esi, 9
mov dword [esp + 0x68], edi
fmul qword [esp + 0x54]
push 0x408
lea edi, [esi + 0x55]
push 0x4273e8
fstp qword [esp + 0x5c]
add dword [esp + 0x3c], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x78], esi
mov dword [esp + 0x1c], edi
call fcn.004020f0
push 0xd
push 0x4255ec
mov dword [esp + 0x88], eax
call fcn.004020f0
mov ebx, eax
push 0xaf1
push 0x4263a0
mov dword [esp + 0x8c], ebx
call fcn.004020f0
push 0x31e
mov dword [esp + 0x7c], 0x359e9bd4
push 0x426fa0
mov dword [esp + 0xa0], eax
call fcn.004020f0
fld dword [esp + 0x50]
mov dx, word [esp + 0x5c]
mov dword [esp + 0x9c], eax
movsx eax, dx
mov dword [esp + 0x44], eax
add esp, 0x20
fild dword [esp + 0x24]
fsubp st(1)
fadd qword [0x426318]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
faddp st(1)
call fcn.0040bcd0
mov dword [esp + 0x34], eax
fld qword [0x426318]
fld1
fsub st(1), st(0)
fxch st(1)
fstp qword [0x426318]
dec dword [esp + 0x3c]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
cmp esi, edi
je 0x40a147
jmp 0x409a40
mov edx, dword [0x429640]
push 0
push edx
mov dword [0x4262b0], 0x6018e159
call fcn.00402250
add esp, 8
test eax, eax
jne 0x409a74
mov eax, dword [0x429648]
mov ecx, dword [0x429184]
push eax
push ecx
call fcn.004028a0
add esp, 8
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
lea edx, [esp + 0xc0]
push edx
call fcn.00403760
push 0x8b
push 0x426f00
call fcn.004020f0
mov ebx, eax
mov eax, dword [esp + 0x8c]
add esp, 0x18
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409ab0
mov edi, ebx
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409ac0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x2710
mov ecx, eax
push 0
and ecx, 3
lea eax, [esp + 0xa0]
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc0]
push ebx
push ecx
call fcn.00408ee0
add esp, 0x14
fld qword [esp + 0x44]
mov edi, 1
fld1
fsub st(1), st(0)
fxch st(1)
fstp qword [esp + 0x44]
mov dx, word [esp + 0x20]
movsx eax, dx
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fadd qword [esp + 0x44]
mov cx, word [esp + 0x20]
dec dword [esp + 0x20]
movsx edx, cx
fsub qword [0x420ac0]
add edx, 0x1efdfdc2
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fcompp
fnstsw ax
test ah, 0x41
jp 0x409b97
dec dword [esp + 0x3c]
fld dword [esp + 0x30]
fsub dword [0x425518]
mov ax, word [esp + 0x3c]
mov dx, word [esp + 0x20]
add dword [esp + 0x20], edi
movsx ecx, ax
movsx eax, dx
lea ecx, [ecx + eax + 0xc2def1d]
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fucompp
fnstsw ax
fsubr dword [esp + 0x30]
fstp dword [esp + 0x30]
test ah, 0x44
jp 0x409ba3
mov dx, word [esp + 0x3c]
fld dword [0x426edc]
fstp st(0)
jmp 0x409ba3
mov eax, dword [esp + 0x40]
fstp st(0)
mov word [0x426394], ax
fldz
push 0x8b
push 0
fstp qword [esp + 0x2c]
mov dword [esp + 0x2c], 0
push ebx
call fcn.0040be10
push ebx
call fcn.0040bd7b
fld dword [0x4254d0]
fld dword [0x4262f0]
add esp, 0x10
fcompp
fnstsw ax
fld dword [0x4254d0]
fadd qword [0x420378]
fstp dword [0x4254d0]
test ah, 5
jp 0x409c04
mov cx, word [0x42627c]
movsx edx, cx
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fstp qword [esp + 0x24]
mov eax, dword [esp + 0x9c]
mov ebx, 0x10
cmp dword [esp + 0xb0], ebx
jae 0x409c20
lea eax, [esp + 0x9c]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0x78]
push ecx
push eax
push edx
call fcn.00408d30
mov edx, eax
add esp, 0xc
cmp edx, 9
jl 0x40a09c
fld qword [0x4254e8]
fsub qword [0x420ab8]
fsub qword [0x420ab0]
fadd dword [0x426384]
mov eax, dword [esp + 0x9c]
fstp dword [0x426384]
cmp dword [esp + 0xb0], ebx
jae 0x409c76
lea eax, [esp + 0x9c]
mov ecx, dword [eax]
xor eax, eax
cmp eax, dword [esp + 0x88]
jl 0x40a09c
jg 0x409c96
cmp ecx, dword [esp + 0x84]
jb 0x40a09c
fld dword [0x4254d0]
mov eax, dword [esp + 0x34]
add eax, 0x2d57dff1
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fld qword [esp + 0x54]
mov cx, word [esp + 0x50]
add dword [esp + 0x50], edi
fsubp st(2)
movsx eax, cx
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
faddp st(2)
fcompp
fnstsw ax
fld qword [esp + 0x54]
fsub qword [0x420378]
fstp qword [esp + 0x54]
test ah, 0x41
jne 0x409cf2
fld qword [0x426318]
fsub qword [0x420aa8]
fstp qword [0x426318]
lea esi, [edx - 1]
cmp esi, dword [esp + 0xac]
jbe 0x409d03
call fcn.0040c4b1
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], ebx
jae 0x409d1a
lea eax, [esp + 0x9c]
mov byte [eax + esi], 0
add dword [esp + 0x50], edi
mov cx, word [esp + 0x20]
movsx edx, cx
sub edx, 0x144ec34f
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fadd qword [0x4252e8]
mov ax, word [esp + 0x50]
movsx ecx, ax
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fucompp
fnstsw ax
test ah, 0x44
jp 0x409d9e
fld dword [esp + 0x30]
mov dx, word [esp + 0x38]
mov ecx, dword [0x426314]
add dword [0x426314], edi
movsx eax, dx
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
mov dword [esp + 0x24], ecx
faddp st(1)
fiadd dword [esp + 0x24]
fcomp qword [0x420aa0]
fnstsw ax
test ah, 5
jp 0x409d9e
movzx edx, word [esp + 0x20]
imul edx, edx, 0xff312a4
mov word [esp + 0x20], dx
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], ebx
jae 0x409db5
lea eax, [esp + 0x9c]
lea ecx, [esp + 0xb4]
add eax, 8
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409de0
test dl, dl
je 0x409ddc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409de0
add eax, 2
add ecx, 2
test dl, dl
jne 0x409dc0
xor eax, eax
jmp 0x409de5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a09c
mov eax, dword [0x42546c]
mov edi, dword [esp + 0xb0]
imul eax, eax, 0xefce4f0
mov edx, dword [esp + 0x9c]
mov dword [0x42546c], eax
cmp edi, ebx
jb 0x409ef9
mov ebx, edx
test edx, edx
je 0x409e46
mov eax, edx
cmp edi, 0x10
jae 0x409e27
lea eax, [esp + 0x9c]
cmp eax, ebx
ja 0x409e46
mov eax, edx
cmp edi, 0x10
jae 0x409e39
lea eax, [esp + 0x9c]
mov ecx, dword [esp + 0xac]
add eax, ecx
cmp ebx, eax
jbe 0x409e60
call fcn.0040c4b1
mov edi, dword [esp + 0xb0]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0x9c]
fld qword [0x420a98]
lea esi, [esp + 0x98]
fstp qword [esp + 0x54]
mov dword [esp + 0x90], ebx
mov eax, edx
cmp edi, 0x10
jae 0x409e86
lea eax, [esp + 0x9c]
lea ebx, [eax + ecx]
test ebx, ebx
je 0x409eb3
mov eax, edx
cmp edi, 0x10
jae 0x409e9b
lea eax, [esp + 0x9c]
cmp eax, ebx
ja 0x409eb3
mov eax, edx
cmp edi, 0x10
jae 0x409ead
lea eax, [esp + 0x9c]
add ecx, eax
cmp ebx, ecx
jbe 0x409eb8
call fcn.0040c4b1
cmp esi, 0xfffffffc
je 0x409ed1
test esi, esi
je 0x409ecc
lea ecx, [esp + 0x98]
cmp esi, ecx
je 0x409ed1
call fcn.0040c4b1
mov edi, dword [esp + 0x90]
cmp edi, ebx
je 0x409fc1
cmp esi, 0xfffffffc
je 0x409f16
test esi, esi
jne 0x409eee
call fcn.0040c4b1
cmp dword [esi + 0x18], 0x10
jb 0x409f05
mov eax, dword [esi + 4]
jmp 0x409f08
lea ebx, [esp + 0x9c]
jmp 0x409e19
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp edi, edx
jb 0x409f16
call fcn.0040c4b1
mov eax, dword [esp + 0x34]
sub eax, 0x446dcadc
cmp eax, 0x9f941d0b
mov byte [edi], 0
jge 0x409f76
fld dword [0x42568c]
fld1
fsub st(1), st(0)
fxch st(1)
fstp dword [0x42568c]
mov ecx, dword [0x4252e4]
sub ecx, 0x79442dc2
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fld dword [0x42568c]
fsubr qword [0x420a90]
fucompp
fnstsw ax
test ah, 0x44
jp 0x409f74
fld qword [esp + 0x44]
fstp st(0)
fsubr qword [esp + 0x44]
fstp qword [esp + 0x44]
jmp 0x409f76
fstp st(0)
cmp esi, 0xfffffffc
je 0x409fa0
test esi, esi
jne 0x409f84
call fcn.0040c4b1
cmp dword [esi + 0x18], 0x10
jb 0x409f8f
mov eax, dword [esi + 4]
jmp 0x409f92
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp edi, edx
jb 0x409fa0
call fcn.0040c4b1
inc dword [esp + 0x90]
mov edi, dword [esp + 0xb0]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0x9c]
jmp 0x409e78
push 0x7e
push 0x426f00
call fcn.004020f0
mov esi, eax
mov ax, word [0x427d40]
movsx ecx, ax
mov edx, 0xadba5433
sub edx, ecx
mov dword [esp + 0x2c], edx
push 0
push 0
fild dword [esp + 0x34]
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0xc8]
fmul qword [esp + 0x58]
push esi
push ecx
fstp qword [esp + 0x60]
dec word [0x427d40]
call fcn.00408ee0
fld qword [0x425080]
push esi
fmul qword [0x420a88]
push 0x7e
fstp qword [0x425080]
call fcn.00401af0
push 0xc
push 0x426320
call fcn.004020f0
fld dword [0x426ee8]
fld dword [0x426364]
mov dx, word [0x4273e4]
mov esi, eax
movsx eax, dx
mov dword [esp + 0x50], eax
mov eax, esi
add esp, 0x2c
fild dword [esp + 0x24]
lea ecx, [eax + 1]
faddp st(1)
fsubp st(1)
fstp dword [0x426ee8]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a068
sub eax, ecx
push eax
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0xa4]
call fcn.004043f0
push esi
push 0xc
mov ebx, eax
call fcn.00401af0
mov ecx, dword [esp + 0xb4]
add ecx, 0xfffffff5
add esp, 8
cmp ebx, ecx
je 0x40a0b4
mov eax, dword [esp + 0x70]
inc eax
mov dword [esp + 0x70], eax
cmp eax, dword [esp + 0x14]
jne 0x409a40
jmp 0x40a143
mov edx, dword [esp + 0x60]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fld dword [0x426388]
dec dword [esp + 0x60]
fsub qword [0x420a80]
fcompp
fnstsw ax
test ah, 1
jne 0x40a12c
fld qword [0x427368]
fsub dword [0x42628c]
fsub qword [0x420a78]
fcomp qword [0x420a70]
fnstsw ax
fld dword [0x42628c]
fsub qword [0x420378]
fstp dword [0x42628c]
test ah, 0x41
jne 0x40a12c
inc dword [esp + 0x3c]
fld dword [esp + 0x30]
mov ax, word [esp + 0x3c]
movsx ecx, ax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
faddp st(1)
fmul qword [esp + 0x44]
fstp qword [esp + 0x44]
push 0xb
push ebx
lea ecx, [esp + 0xa0]
call fcn.00405ef0
mov dword [esp + 0x2c], 1
mov ebx, dword [esp + 0x74]
mov dx, word [esp + 0x38]
fldz
mov ecx, dword [esp + 0x34]
movsx eax, dx
mov edx, dword [0x4272d8]
sub eax, ecx
mov ecx, dword [esp + 0x34]
add eax, edx
mov edx, dword [esp + 0x78]
imul ecx, eax
mov dword [esp + 0x34], ecx
xor esi, esi
push 0x408
mov edi, 1
add dword [esp + 0x38], edi
push esi
fstp qword [esp + 0x1c]
mov dword [esp + 0x1c], esi
push edx
call fcn.0040be10
mov eax, dword [esp + 0x84]
push eax
call fcn.0040bd7b
fld dword [0x4254d0]
add esp, 0x10
fld dword [0x4262f0]
fcompp
fnstsw ax
fld dword [0x4254d0]
fadd qword [0x420378]
fstp dword [0x4254d0]
test ah, 5
jp 0x40a1da
mov cx, word [0x42627c]
movsx edx, cx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fstp qword [esp + 0x14]
fldz
xor eax, eax
mov dword [ebx], eax
fstp qword [esp + 0x14]
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [esp + 0x14], esi
push ebx
mov byte [ebx + 0xc], al
call fcn.0040bd7b
fld dword [0x4254d0]
fld dword [0x4262f0]
add esp, 4
fcompp
fnstsw ax
fld dword [0x4254d0]
fadd qword [0x420378]
fstp dword [0x4254d0]
test ah, 5
jp 0x40a236
mov ax, word [0x42627c]
movsx ecx, ax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fstp qword [esp + 0x14]
fldz
mov ebx, dword [esp + 0x7c]
push 0x31e
fstp qword [esp + 0x18]
push esi
mov dword [esp + 0x1c], esi
push ebx
call fcn.0040be10
push ebx
call fcn.0040bd7b
fld dword [0x4254d0]
fld dword [0x4262f0]
add esp, 0x10
fcompp
fnstsw ax
fld dword [0x4254d0]
fadd qword [0x420378]
fstp dword [0x4254d0]
test ah, 5
jp 0x40a296
mov dx, word [0x42627c]
movsx eax, dx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp qword [esp + 0x14]
fldz
mov ebx, dword [esp + 0x80]
push 0xaf1
fstp qword [esp + 0x18]
push esi
mov dword [esp + 0x1c], esi
push ebx
call fcn.0040be10
push ebx
call fcn.0040bd7b
fld dword [0x4254d0]
fld dword [0x4262f0]
add esp, 0x10
fcompp
fnstsw ax
fld dword [0x4254d0]
fadd qword [0x420378]
fstp dword [0x4254d0]
test ah, 5
jp 0x40a2f9
mov cx, word [0x42627c]
movsx edx, cx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fstp qword [esp + 0x14]
mov ax, word [0x42563c]
add word [0x42563c], di
movsx ecx, ax
cmp ecx, 0xdb2dc9c2
jle 0x40a31f
fld qword [esp + 0x54]
fadd qword [0x420a68]
fstp qword [esp + 0x54]
push 0x40
lea edx, [esp + 0xb8]
push esi
push edx
call fcn.0040be10
add esp, 0xc
cmp dword [esp + 0x2c], esi
je 0x40a745
mov eax, dword [esp + 0x94]
push 0x708
push eax
call fcn.00402e40
add esp, 8
cmp dword [esp + 0xac], 0x200
jbe 0x40a722
push 0x370
call fcn.0040bf13
fld dword [0x4272e0]
fld1
mov edi, eax
fsub st(1), st(0)
add esp, 4
fxch st(1)
fstp dword [0x4272e0]
fld dword [0x4272e0]
fadd qword [0x420a60]
fld qword [esp + 0x54]
mov ecx, dword [0x425560]
fsubr qword [0x420a58]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fsubp st(1)
fucompp
fnstsw ax
fld qword [esp + 0x54]
fadd st(1)
fstp qword [esp + 0x54]
test ah, 0x44
jnp 0x40a780
movzx edx, word [esp + 0x38]
movzx eax, word [esp + 0x50]
sub edx, 0x792f2d8c
imul edx, eax
mov word [esp + 0x50], dx
dec dword [esp + 0x38]
fstp st(0)
push edi
push 0xeb
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
call fcn.00403660
mov edx, dword [0x4255e8]
add edx, dword [esp + 0x48]
push 3
mov dword [0x4255e8], edx
push 0x425464
call fcn.004020f0
mov esi, eax
push esi
push edi
call fcn.0040ca5e
fldz
mov ebx, eax
fstp qword [esp + 0x2c]
xor eax, eax
mov word [esi], ax
mov dword [esp + 0x2c], eax
push esi
mov byte [esi + 2], al
call fcn.0040bd7b
fld dword [0x4254d0]
fld dword [0x4262f0]
add esp, 0x1c
fcompp
fnstsw ax
fld dword [0x4254d0]
fadd qword [0x420378]
fstp dword [0x4254d0]
test ah, 5
jp 0x40a475
mov ax, word [0x42627c]
movsx ecx, ax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fstp qword [esp + 0x14]
cmp dword [esp + 0xb0], 0x10
mov eax, dword [esp + 0x9c]
jae 0x40a48d
lea eax, [esp + 0x9c]
mov edx, dword [esp + 0xac]
push ebx
push 1
push edx
push eax
call fcn.0040cc86
inc word [0x426380]
mov ax, word [0x426380]
mov edx, dword [esp + 0x50]
movsx ecx, ax
mov eax, 0xe1b58cf7
sub eax, ecx
add edx, eax
add esp, 0x10
cmp edx, 0xfa43ce60
je 0x40a4d4
mov eax, dword [esp + 0x40]
imul eax, eax, 0xea888bf0
mov dword [esp + 0x40], eax
push ebx
call fcn.0040c604
add esp, 4
push 0x104
lea eax, [edi + 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
inc dword [esp + 0x40]
fld qword [esp + 0x44]
fsub qword [0x420378]
push 0x15
push 0x425530
fstp qword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
add ecx, 0xefb131e
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fadd qword [esp + 0x4c]
fstp qword [0x425308]
call fcn.004020f0
movzx edx, word [esp + 0x28]
imul edx, edx, 0x1fecf3d
push 0x20
mov word [esp + 0x2c], dx
push 0x4262f4
mov ebx, eax
call fcn.004020f0
mov esi, eax
fld dword [0x4252d4]
mov ax, word [esp + 0x48]
movsx ecx, ax
mov dword [esp + 0x24], ecx
lea eax, [edi + 0x104]
fild dword [esp + 0x24]
fadd qword [esp + 0x64]
fsubp st(1)
fstp dword [0x4252d4]
dec dword [esp + 0x48]
mov edx, dword [0x429640]
push edx
push esi
push eax
push ebx
lea eax, [edi + 0x208]
push 0x168
push eax
call fcn.0040ca75
fldz
xor eax, eax
fstp qword [esp + 0x3c]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esp + 0x3c], eax
push esi
mov dword [esi + 0x1c], eax
call fcn.0040bd7b
fld dword [0x4254d0]
fld dword [0x4262f0]
add esp, 0x2c
fcompp
fnstsw ax
fld dword [0x4254d0]
fadd qword [0x420378]
fstp dword [0x4254d0]
test ah, 5
jp 0x40a5fa
mov ax, word [0x42627c]
movsx ecx, ax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fstp qword [esp + 0x14]
fld qword [0x425338]
mov dx, word [0x4252f8]
mov cx, word [esp + 0x20]
movsx eax, dx
mov dword [esp + 0x14], eax
movsx edx, cx
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fsubp st(1)
fsub qword [0x420a50]
fild dword [esp + 0x14]
fmulp st(1)
call fcn.0040bcd0
fldz
mov word [esp + 0x20], ax
fstp qword [esp + 0x14]
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [esp + 0x14], 0
push ebx
mov byte [ebx + 0x14], al
call fcn.0040bd7b
fld dword [0x4254d0]
fld dword [0x4262f0]
add esp, 4
fcompp
fnstsw ax
fld dword [0x4254d0]
fadd qword [0x420378]
fstp dword [0x4254d0]
test ah, 5
jp 0x40a69c
mov ax, word [0x42627c]
movsx ecx, ax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fstp qword [esp + 0x14]
mov edx, dword [0x429640]
push 1
push edx
call fcn.00402250
fld qword [0x426ed0]
mov eax, dword [0x4252d8]
add eax, 0x4e6bc4bd
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
lea eax, [edi + 0x208]
push eax
push edi
fsubp st(1)
fstp qword [0x426ed0]
inc dword [0x4252d8]
call fcn.004028a0
push 0x370
push 0
push edi
call fcn.0040be10
push edi
call fcn.0040bd7b
fld qword [esp + 0x64]
fadd qword [0x420378]
add esp, 0x20
push 0x15f90
fstp qword [esp + 0x48]
fld qword [esp + 0x48]
fsubr qword [0x420a48]
fsub qword [0x420a40]
fstp dword [0x4252d4]
call dword [sym.imp.KERNEL32.dll_Sleep]
fld dword [esp + 0x30]
mov ecx, dword [0x426314]
mov edx, 0xf600941e
sub edx, ecx
mov dword [esp + 0x14], edx
fisub dword [esp + 0x14]
fstp dword [esp + 0x30]
dec dword [0x426314]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x429640]
push 0
push eax
call fcn.00402250
add esp, 8
test eax, eax
jne 0x4097f0
mov ecx, dword [0x429648]
mov edx, dword [0x429184]
push ecx
push edx
call fcn.004028a0
jmp 0x4097ed
mov cx, word [esp + 0x20]
movsx edx, cx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fsub qword [0x426f90]
fld dword [esp + 0x30]
mov eax, dword [0x42562c]
fsub qword [0x420a38]
inc dword [0x42562c]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
faddp st(2)
fcompp
fnstsw ax
fld qword [0x426f90]
fsub st(1)
fstp qword [0x426f90]
dec dword [esp + 0x20]
fld dword [esp + 0x30]
fadd st(1)
fstp dword [esp + 0x30]
test ah, 0x41
jne 0x40a3dc
fld qword [0x425300]
mov ecx, dword [0x425088]
fstp st(0)
fsubr qword [0x425300]
fstp qword [0x425300]
jmp 0x40a3de