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

Disassembly:
push 0xffffffffffffffff
push 0x41e458
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x426040]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x426040]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
fldz
xor ebx, ebx
xor eax, eax
mov word [esp + 0x14], ax
mov dword [esp + 0x18], ebx
fst qword [esp + 0x40]
fldz
xor ecx, ecx
fst dword [esp + 0x28]
fstp dword [esp + 0x4c]
fstp qword [esp + 0x50]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
mov dword [esp + 0x20], ebx
fld qword [0x4248c0]
fld1
fsub st(1), st(0)
fxch st(1)
fstp qword [0x4248c0]
fld qword [0x4248c0]
fadd qword [0x41f958]
fld qword [esp + 0x40]
fsub qword [0x41f950]
fsub qword [0x423c70]
fcompp
fnstsw ax
fld qword [0x423c70]
fadd st(1)
fstp qword [0x423c70]
fld qword [esp + 0x40]
fadd st(1)
fstp qword [esp + 0x40]
test ah, 0x41
jne 0x409007
fld dword [0x423144]
fsubr qword [0x41f948]
fcomp qword [0x41f940]
fnstsw ax
fld dword [0x423144]
fadd st(1)
fstp dword [0x423144]
test ah, 0x41
jne 0x408ff9
fld qword [0x425560]
fmul qword [0x41f938]
fstp qword [0x425560]
jmp 0x409020
fld dword [esp + 0x4c]
mov edx, dword [0x4236a4]
fstp st(0)
jmp 0x409020
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fsub dword [esp + 0x28]
call fcn.0040b140
mov dword [esp + 0x18], eax
fld qword [esp + 0x40]
mov dword [esp + 0x38], ebx
fsub qword [0x41f930]
fstp qword [0x4236d0]
fsubr qword [esp + 0x40]
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
fstp qword [esp + 0x40]
push 0x118
mov dword [esp + 0xd4], ebx
call fcn.0040b23a
push eax
mov dword [esp + 0x48], eax
call fcn.004022f0
add esp, 8
lea ecx, [ecx]
movzx ecx, word [0x425588]
sub ecx, 0x4a6f8c16
push 0
mov word [0x425588], cx
call fcn.0040af5a
add esp, 4
cmp edx, ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
jg 0x4090ac
jl 0x4090a2
cmp eax, dword [esp + 0x38]
jae 0x4090ac
mov dword [esp + 0x38], 0
xor ebx, ebx
sub eax, dword [esp + 0x38]
sbb edx, ebx
mov dword [esp + 0x24], edx
js 0x409871
jg 0x4090c9
cmp eax, 0x708
jbe 0x409871
mov eax, dword [0x423ca0]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
mov dword [esp + 0x38], edx
fld dword [esp + 0x28]
mov dword [esp + 0x3c], ebx
fcompp
fnstsw ax
fld dword [esp + 0x28]
fadd qword [0x41f358]
fstp dword [esp + 0x28]
test ah, 0x41
jne 0x409115
movzx ecx, word [0x423ca4]
sub ecx, 0xea897b3
mov word [0x423ca4], cx
mov esi, dword [esp + 0x50]
shr esi, 9
push 0x408
lea ebp, [esi + 0x55]
push 0x423808
mov dword [esp + 0x38], 0
mov dword [esp + 0x60], esi
mov dword [esp + 0x28], ebp
call fcn.00401ab0
push 0xd
push 0x4234c0
mov dword [esp + 0x6c], eax
call fcn.00401ab0
mov edi, eax
push 0xaf1
push 0x424a68
mov dword [esp + 0x60], edi
call fcn.00401ab0
mov edx, dword [esp + 0x44]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x7c]
sub edx, eax
mov dword [esp + 0x4c], edx
fild dword [esp + 0x4c]
push 0x31e
push 0x425738
fstp dword [0x42348c]
dec dword [esp + 0x4c]
call fcn.00401ab0
add esp, 0x20
mov dword [esp + 0x34], eax
cmp esi, ebp
je 0x40958f
mov edx, dword [0x427840]
mov ecx, 0xffffcd88
push 0
push edx
mov ebx, 0x10
mov word [esp + 0x1c], cx
call fcn.004017b0
add esp, 8
test eax, eax
jne 0x4091fe
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fld qword [0x425560]
fsubr qword [0x41f928]
fsubp st(1)
call fcn.0040b140
mov ecx, dword [0x427848]
mov edx, dword [0x427384]
push ecx
push edx
mov dword [esp + 0x20], eax
call fcn.00401d60
add esp, 8
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x60]
push esi
push eax
push ecx
lea edx, [esp + 0x90]
push edx
call fcn.004027c0
push 0x8b
push 0x425660
call fcn.00401ab0
mov ebp, eax
mov eax, edi
add esp, 0x18
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409230
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409240
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 + 0x70]
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x90]
push ebp
push ecx
call fcn.00408480
movzx edx, word [0x4233f0]
movsx eax, dx
mov dword [esp + 0x28], eax
xor ecx, ecx
push 0x8b
fild dword [esp + 0x2c]
push ecx
push ebp
fmul dword [esp + 0x6c]
fstp dword [esp + 0x6c]
mov word [esp + 0x34], cx
mov dword [esp + 0x34], ecx
call fcn.0040b0c0
push ebp
call fcn.0040b02e
movzx edx, word [esp + 0x40]
mov eax, dword [esp + 0x90]
imul edx, edx, 0xf913e0ff
add esp, 0x24
mov word [esp + 0x1c], dx
cmp dword [esp + 0x80], ebx
jae 0x4092ce
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x5c]
push ecx
push eax
push edx
call fcn.00407de0
add esp, 0xc
cmp eax, 9
jl 0x40955a
mov ecx, dword [esp + 0x6c]
cmp dword [esp + 0x80], ebx
jae 0x4092fb
lea ecx, [esp + 0x6c]
mov edx, dword [ecx]
xor ecx, ecx
cmp ecx, dword [esp + 0x54]
jl 0x40955a
jg 0x409315
cmp edx, dword [esp + 0x50]
jb 0x40955a
lea esi, [eax - 1]
cmp esi, dword [esp + 0x7c]
jbe 0x409323
call fcn.0040b821
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x80], ebx
jae 0x409334
lea eax, [esp + 0x6c]
mov byte [eax + esi], 0
mov ebx, dword [esp + 0x80]
mov eax, dword [esp + 0x6c]
cmp ebx, 0x10
jae 0x40934c
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x84]
add eax, 8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409376
test dl, dl
je 0x409372
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409376
add eax, 2
add ecx, 2
test dl, dl
jne 0x409356
xor eax, eax
jmp 0x40937b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40955a
mov ecx, dword [esp + 0x6c]
cmp ebx, 0x10
jb 0x40943e
mov edi, ecx
test ecx, ecx
je 0x4093ba
mov eax, ecx
cmp ebx, 0x10
jae 0x4093a1
lea eax, [esp + 0x6c]
cmp eax, edi
ja 0x4093ba
mov eax, ecx
cmp ebx, 0x10
jae 0x4093b0
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0x7c]
add eax, ecx
cmp edi, eax
jbe 0x4093ca
call fcn.0040b821
mov ebx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
lea esi, [esp + 0x68]
mov ebp, edi
mov edx, dword [esp + 0x6c]
mov eax, edx
cmp ebx, 0x10
jae 0x4093df
lea eax, [esp + 0x6c]
lea edi, [eax + ecx]
test edi, edi
je 0x409406
mov eax, edx
cmp ebx, 0x10
jae 0x4093f1
lea eax, [esp + 0x6c]
cmp eax, edi
ja 0x409406
mov eax, edx
cmp ebx, 0x10
jae 0x409400
lea eax, [esp + 0x6c]
add eax, ecx
cmp edi, eax
jbe 0x40940b
call fcn.0040b821
cmp esi, 0xfffffffc
je 0x409421
test esi, esi
je 0x40941c
lea eax, [esp + 0x68]
cmp esi, eax
je 0x409421
call fcn.0040b821
cmp ebp, edi
je 0x409497
cmp esi, 0xfffffffc
je 0x409458
test esi, esi
jne 0x409433
call fcn.0040b821
cmp dword [esi + 0x18], 0x10
jb 0x409447
mov eax, dword [esi + 4]
jmp 0x40944a
lea edi, [esp + 0x6c]
jmp 0x409396
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp ebp, ecx
jb 0x409458
call fcn.0040b821
mov byte [ebp], 0
cmp esi, 0xfffffffc
je 0x409486
test esi, esi
jne 0x40946a
call fcn.0040b821
cmp dword [esi + 0x18], 0x10
jb 0x409475
mov eax, dword [esi + 4]
jmp 0x409478
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebp, edx
jb 0x409486
call fcn.0040b821
mov ebx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
inc ebp
jmp 0x4093d0
push 0x7e
push 0x425660
call fcn.00401ab0
xor ebx, ebx
push ebx
mov esi, eax
push ebx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x98]
push esi
push ecx
call fcn.00408480
push 0x7e
xor edx, edx
push ebx
mov word [esp + 0x38], dx
mov dword [esp + 0x38], ebx
push esi
call fcn.0040b0c0
push esi
call fcn.0040b02e
push 0xc
push 0x424970
call fcn.00401ab0
fld dword [esp + 0x5c]
fmul qword [0x41f920]
add esp, 0x34
mov esi, eax
lea ecx, [eax + 1]
fstp dword [esp + 0x28]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4094f8
sub eax, ecx
push eax
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x74]
call fcn.004049d0
dec word [0x4234f4]
mov edi, eax
mov ax, word [0x4234f4]
movsx ecx, ax
mov dword [esp + 0x14], ecx
xor eax, eax
xor edx, edx
fild dword [esp + 0x14]
push esi
fstp qword [0x423768]
mov dword [esi], eax
mov word [esp + 0x18], dx
mov dword [esi + 4], eax
mov dword [esp + 0x18], ebx
mov dword [esi + 8], eax
call fcn.0040b02e
mov eax, dword [esp + 0x80]
add eax, 0xfffffff5
add esp, 4
cmp edi, eax
je 0x409573
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x48]
inc esi
mov dword [esp + 0x58], esi
cmp esi, dword [esp + 0x20]
jne 0x4091a1
jmp 0x40958b
push 0xb
push edi
lea ecx, [esp + 0x70]
call fcn.00406c80
mov edi, dword [esp + 0x48]
mov dword [esp + 0x30], 1
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x5c]
xor esi, esi
push 0x408
xor ecx, ecx
push esi
mov word [esp + 0x1c], cx
mov dword [esp + 0x28], esi
push ebp
call fcn.0040b0c0
push ebp
call fcn.0040b02e
xor eax, eax
mov dword [edi], eax
xor edx, edx
mov dword [edi + 4], eax
mov word [esp + 0x24], dx
mov dword [edi + 8], eax
mov dword [esp + 0x30], esi
push edi
mov byte [edi + 0xc], al
call fcn.0040b02e
dec word [0x42570c]
fld qword [0x4256e8]
mov ax, word [0x42570c]
fsubr qword [0x41f918]
movsx ecx, ax
mov dword [esp + 0x34], ecx
add esp, 0x14
fild dword [esp + 0x20]
fsubp st(1)
fcomp qword [0x41f910]
fnstsw ax
test ah, 0x44
jp 0x40961a
movzx edx, word [0x425570]
imul edx, edx, 0x27d44cc7
mov word [0x425570], dx
mov edi, dword [esp + 0x34]
push 0x31e
xor eax, eax
push esi
mov word [esp + 0x1c], ax
mov dword [esp + 0x28], esi
push edi
call fcn.0040b0c0
push edi
call fcn.0040b02e
mov edi, dword [esp + 0x70]
push 0xaf1
xor ecx, ecx
push esi
mov word [esp + 0x2c], cx
push edi
mov dword [esp + 0x3c], esi
call fcn.0040b0c0
push edi
call fcn.0040b02e
push 0x40
lea edx, [esp + 0xa8]
push esi
push edx
call fcn.0040b0c0
add esp, 0x2c
cmp dword [esp + 0x30], esi
je 0x409871
mov eax, dword [esp + 0x40]
push 0x708
push eax
call fcn.00403940
add esp, 8
cmp dword [esp + 0x7c], 0x200
jbe 0x409871
push 0x370
call fcn.0040b23a
add esp, 4
mov ebp, eax
push ebp
push 0xeb
lea ebx, [ebp + 0x104]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebp
call fcn.00402190
mov cx, word [0x424990]
movsx eax, cx
add dword [esp + 0x20], eax
dec word [0x424990]
push 3
push 0x423700
call fcn.00401ab0
mov dx, word [0x4249e0]
mov esi, eax
movsx eax, dx
add eax, 0x3b6841aa
push esi
mov dword [esp + 0x34], eax
push ebp
call fcn.0040bd47
mov edi, eax
xor eax, eax
xor ecx, ecx
mov word [esp + 0x2c], cx
mov word [esi], ax
mov dword [esp + 0x38], eax
push esi
mov byte [esi + 2], al
call fcn.0040b02e
fld qword [0x424998]
mov eax, dword [esp + 0x88]
fsub qword [0x41f908]
add esp, 0x1c
cmp dword [esp + 0x80], 0x10
fstp qword [0x424998]
jae 0x409749
lea eax, [esp + 0x6c]
mov edx, dword [esp + 0x7c]
push edi
push 1
push edx
push eax
call fcn.0040bc01
push edi
call fcn.0040ba23
movzx eax, word [0x4249e0]
add esp, 0x14
push 0x104
push ebx
add eax, 0x771652aa
mov word [0x4249e0], ax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x15
push 0x423680
call fcn.00401ab0
push 0x20
push 0x4249e4
mov edi, eax
call fcn.00401ab0
mov ecx, dword [0x427840]
push ecx
mov esi, eax
push esi
push ebx
push edi
push 0x168
lea ebx, [ebp + 0x208]
push ebx
call fcn.0040b8fd
movzx edx, word [esp + 0x44]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
sub edx, 0x6c1893cd
mov word [esp + 0x44], dx
mov dword [esi + 0x14], eax
mov word [esp + 0x3c], ax
mov dword [esi + 0x18], eax
mov dword [esp + 0x48], eax
push esi
mov dword [esi + 0x1c], eax
call fcn.0040b02e
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
xor ecx, ecx
mov dword [edi + 0xc], eax
mov word [esp + 0x40], cx
mov dword [edi + 0x10], eax
mov dword [esp + 0x4c], ecx
push edi
mov byte [edi + 0x14], al
call fcn.0040b02e
fld qword [0x423748]
mov edx, dword [esp + 0x48]
mov ecx, dword [0x427840]
mov eax, 0x979c7508
sub eax, edx
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
push 1
push ecx
fsubp st(1)
fstp qword [0x423748]
call fcn.004017b0
push ebx
push ebp
call fcn.00401d60
add esp, 0x40
push 0x370
push 0
push ebp
call fcn.0040b0c0
push ebp
call fcn.0040b02e
add esp, 0x10
push 0x15f90
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [esp + 0x3c]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
add word [0x423c78], cx
fld qword [0x425638]
mov dx, word [0x423c78]
fsub qword [0x41f900]
movsx eax, dx
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
faddp st(1)
fld dword [0x424a64]
fadd dword [0x425634]
fcompp
fnstsw ax
fld dword [0x424a64]
fadd qword [0x41f358]
fstp dword [0x424a64]
test ah, 0x41
jne 0x4098ec
mov edx, dword [esp + 0x2c]
mov eax, 0xbcda90b6
sub eax, edx
mov edx, dword [0x424944]
imul eax, edx
mov dword [0x424944], eax
add dword [esp + 0x2c], ecx
mov eax, dword [0x427840]
push 0
push eax
call fcn.004017b0
add esp, 8
test eax, eax
jne 0x409070
mov ecx, dword [0x427848]
mov edx, dword [0x427384]
push ecx
push edx
call fcn.00401d60
jmp 0x40906a