Function at 0x408d10
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 0x41e488
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x425fd0]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x425fd0]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
fldz
xor eax, eax
fst dword [esp + 0x28]
xor ecx, ecx
fldz
mov dword [esp + 0x44], eax
fst qword [esp + 0x64]
mov dword [esp + 0x48], eax
fxch st(1)
mov word [esp + 0x18], ax
mov word [esp + 0x38], cx
mov dword [esp + 0x60], eax
fst dword [esp + 0x30]
fst dword [esp + 0x3c]
fxch st(1)
fstp qword [esp + 0x6c]
mov dword [esp + 0x40], eax
fstp dword [esp + 0x74]
fld dword [esp + 0x30]
mov dx, word [esp + 0x38]
movsx ecx, dx
mov dword [esp + 0x34], ecx
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], eax
fild dword [esp + 0x34]
mov byte [esp + 0x8c], al
faddp st(1)
fadd qword [0x41f950]
fstp dword [0x423614]
push 0x118
mov dword [esp + 0xfc], eax
call fcn.0040b269
push eax
mov dword [esp + 0x80], eax
call fcn.00403320
add esp, 8
lea ebx, [ebx]
push 0
call fcn.0040af8a
mov ebx, dword [esp + 0x4c]
mov esi, edx
add esp, 4
cmp esi, ebx
mov edi, eax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], esi
jg 0x408e23
jl 0x408e19
cmp edi, dword [esp + 0x44]
jae 0x408e23
xor ebx, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
dec word [0x423044]
mov dx, word [0x423044]
mov cx, word [esp + 0x18]
movsx eax, dx
mov dword [esp + 0x34], eax
movsx edx, cx
fild dword [esp + 0x34]
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
fld dword [esp + 0x28]
faddp st(2)
fsubrp st(1)
call fcn.0040b0f0
mov word [esp + 0x18], ax
fld dword [esp + 0x28]
fld1
mov eax, edi
sub eax, dword [esp + 0x44]
fsub st(1), st(0)
mov ecx, esi
fxch st(1)
sbb ecx, ebx
mov dword [esp + 0x20], ecx
fstp dword [esp + 0x28]
js 0x409a26
jg 0x408e8d
cmp eax, 0x708
jbe 0x409a26
fld qword [0x423540]
mov dword [esp + 0x44], edi
fadd st(1)
mov dword [esp + 0x48], esi
mov dword [esp + 0x34], 0
fstp qword [0x423540]
fld qword [0x423540]
fsub qword [0x41f948]
fsub qword [0x41f940]
fcomp qword [0x41f938]
fnstsw ax
test ah, 0x41
jp 0x408ed8
fld dword [esp + 0x28]
fsub qword [0x41f930]
fstp dword [esp + 0x28]
fld qword [0x425ea8]
mov dx, word [esp + 0x38]
movsx eax, dx
sub eax, 0x20aff986
mov dword [esp + 0x2c], eax
shr edi, 9
lea ebx, [edi + 0x55]
fild dword [esp + 0x2c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x1c], ebx
fsubp st(1)
fstp qword [0x425ea8]
fld dword [0x424e8c]
mov cx, word [0x425eb8]
movsx edx, cx
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
fsubp st(1)
fsub qword [0x41f928]
fcomp qword [0x41f920]
fnstsw ax
fld dword [0x424e8c]
fsub st(1)
fstp dword [0x424e8c]
test ah, 0x41
jp 0x408fad
fld qword [0x424e78]
fsub st(1)
fstp qword [0x424e78]
mov ax, word [0x42598c]
movsx ecx, ax
add ecx, 0x28e5624d
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
fld qword [0x424e78]
inc word [0x42598c]
fadd qword [0x41f918]
fsub qword [0x41f910]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x408fad
fld qword [0x425ec8]
fadd qword [0x41f908]
fsub dword [esp + 0x30]
fmul qword [esp + 0x6c]
fstp qword [esp + 0x6c]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
jmp 0x408faf
fstp st(0)
push 0x408
push 0x425a28
call fcn.00402390
push 0xd
push 0x4235ac
mov dword [esp + 0x6c], eax
call fcn.00402390
mov esi, eax
push 0xaf1
push 0x424278
mov dword [esp + 0x68], esi
call fcn.00402390
movzx edx, word [esp + 0x30]
sub edx, 0x3fb406cf
push 0x31e
push 0x423128
mov dword [esp + 0x4c], eax
mov word [esp + 0x38], dx
call fcn.00402390
add esp, 0x20
mov dword [esp + 0x58], eax
cmp edi, ebx
je 0x40961c
jmp 0x409020
mov eax, dword [esp + 0x40]
add eax, 0x484fd702
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
push 0
fsub qword [0x425408]
fstp qword [0x425990]
fld qword [0x425408]
fsub qword [0x41f340]
fstp qword [0x425408]
dec dword [esp + 0x44]
mov ecx, dword [0x4277c0]
push ecx
call fcn.00401f00
add esp, 8
test eax, eax
jne 0x40907d
mov edx, dword [0x4277c8]
mov eax, dword [0x427304]
push edx
push eax
call fcn.00401990
add esp, 8
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x2c]
add dword [0x423550], 0x3a573bef
push ecx
push edx
push eax
lea ecx, [esp + 0xb0]
push ecx
call fcn.004024c0
push 0x8b
push 0x425368
call fcn.00402390
mov ebx, eax
mov eax, dword [esp + 0x68]
add esp, 0x18
mov esi, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4090c0
mov edi, ebx
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4090d0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x2710
push 0
lea edx, [esp + 0x90]
push edx
mov ecx, eax
lea eax, [esp + 0xb0]
and ecx, 3
push ebx
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00408580
push 0x8b
fldz
push 0
fst dword [esp + 0x30]
push ebx
fstp dword [esp + 0x34]
call fcn.0040b1a0
push ebx
call fcn.0040b05e
fld qword [0x425960]
fsub qword [0x41f350]
add esp, 0x24
fadd qword [0x41f348]
call fcn.0040b0f0
cmp dword [esp + 0xa0], 0x10
mov dword [0x423550], eax
mov eax, dword [esp + 0x8c]
jae 0x409157
lea eax, [esp + 0x8c]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x5c]
push ecx
push eax
push edx
call fcn.004083b0
add esp, 0xc
cmp eax, 9
jge 0x40919b
fld dword [0x424db0]
mov eax, dword [0x424da0]
sub eax, 0x4f9d343e
mov dword [esp + 0x14], eax
fisub dword [esp + 0x14]
fstp dword [0x424db0]
dec dword [0x424da0]
jmp 0x4095b6
mov ecx, dword [esp + 0x8c]
mov edi, 0x10
cmp dword [esp + 0xa0], edi
jae 0x4091b7
lea ecx, [esp + 0x8c]
mov edx, dword [ecx]
xor ecx, ecx
cmp ecx, dword [esp + 0x80]
jl 0x4095b6
jg 0x4091d4
cmp edx, dword [esp + 0x7c]
jb 0x4095b6
fld dword [0x4258e0]
lea esi, [eax - 1]
fsub qword [0x41f900]
fstp dword [0x4258e0]
cmp esi, dword [esp + 0x9c]
jbe 0x4091f7
call fcn.0040b850
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xa0], edi
jae 0x40920e
lea eax, [esp + 0x8c]
mov byte [eax + esi], 0
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xa0], edi
jae 0x409229
lea eax, [esp + 0x8c]
lea ecx, [esp + 0xa4]
add eax, 8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409253
test dl, dl
je 0x40924f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409253
add eax, 2
add ecx, 2
test dl, dl
jne 0x409233
xor eax, eax
jmp 0x409258
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409292
mov cx, word [esp + 0x18]
movsx edx, cx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fsub dword [esp + 0x74]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], eax
fsub qword [0x41f8f8]
fild dword [esp + 0x14]
fmulp st(1)
call fcn.0040b0f0
mov dword [esp + 0x60], eax
jmp 0x4095b6
fld dword [esp + 0x3c]
fadd qword [0x41f8f0]
fsub dword [0x4235d0]
mov ecx, dword [0x4258d8]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmulp st(1)
call fcn.0040b0f0
mov dword [0x4258d8], eax
fld dword [esp + 0x3c]
fadd qword [0x41f340]
mov ebx, dword [esp + 0xa0]
mov edx, dword [esp + 0x8c]
fstp dword [esp + 0x3c]
cmp ebx, edi
jb 0x4093b6
mov edi, edx
test edx, edx
je 0x409313
mov eax, edx
cmp ebx, 0x10
jae 0x4092f4
lea eax, [esp + 0x8c]
cmp eax, edi
ja 0x409313
mov eax, edx
cmp ebx, 0x10
jae 0x409306
lea eax, [esp + 0x8c]
mov ecx, dword [esp + 0x9c]
add eax, ecx
cmp edi, eax
jbe 0x40932d
call fcn.0040b850
mov ebx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x8c]
lea esi, [esp + 0x88]
mov dword [esp + 0x68], edi
mov eax, edx
cmp ebx, 0x10
jae 0x409346
lea eax, [esp + 0x8c]
lea edi, [eax + ecx]
test edi, edi
je 0x409373
mov eax, edx
cmp ebx, 0x10
jae 0x40935b
lea eax, [esp + 0x8c]
cmp eax, edi
ja 0x409373
mov eax, edx
cmp ebx, 0x10
jae 0x40936d
lea eax, [esp + 0x8c]
add eax, ecx
cmp edi, eax
jbe 0x409378
call fcn.0040b850
cmp esi, 0xfffffffc
je 0x409391
test esi, esi
je 0x40938c
lea edx, [esp + 0x88]
cmp esi, edx
je 0x409391
call fcn.0040b850
mov ebx, dword [esp + 0x68]
cmp ebx, edi
je 0x40941e
cmp esi, 0xfffffffc
je 0x4093d3
test esi, esi
jne 0x4093ab
call fcn.0040b850
cmp dword [esi + 0x18], 0x10
jb 0x4093c2
mov eax, dword [esi + 4]
jmp 0x4093c5
lea edi, [esp + 0x8c]
jmp 0x4092e6
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp ebx, ecx
jb 0x4093d3
call fcn.0040b850
mov byte [ebx], 0
cmp esi, 0xfffffffc
je 0x409400
test esi, esi
jne 0x4093e4
call fcn.0040b850
cmp dword [esi + 0x18], 0x10
jb 0x4093ef
mov eax, dword [esi + 4]
jmp 0x4093f2
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x409400
call fcn.0040b850
inc dword [esp + 0x68]
mov ebx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x8c]
jmp 0x409338
push 0x7e
push 0x425368
call fcn.00402390
fld qword [0x423598]
fsub qword [0x41f8e8]
mov esi, eax
mov ax, word [0x424e48]
mov ecx, dword [0x424e64]
fsub qword [0x41f8e0]
cwde
sub ecx, eax
mov dword [esp + 0x1c], ecx
add esp, 8
fild dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 5
jp 0x4094bb
mov dx, word [0x425e60]
movsx eax, dx
add eax, 0x391c9a95
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fsub qword [0x425340]
fld dword [esp + 0x3c]
fsub dword [0x425400]
fcompp
fnstsw ax
fld qword [0x425340]
fld1
fadd st(1), st(0)
fxch st(1)
fstp qword [0x425340]
test ah, 5
jp 0x4094ee
fsubr dword [0x4230e0]
fstp dword [0x4230e0]
fld dword [0x4230e0]
fstp dword [esp + 0x30]
jmp 0x4094f0
inc word [0x424df4]
mov cx, word [0x424df4]
movsx edx, cx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fsub dword [0x4259cc]
fsub dword [0x423460]
fadd qword [0x425918]
fstp qword [0x425918]
jmp 0x4094f0
fstp st(0)
push 0
push 0
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0xb0]
push esi
push ecx
call fcn.00408580
fldz
push 0x7e
fst dword [esp + 0x2c]
push 0
fstp dword [esp + 0x30]
push esi
call fcn.0040b1a0
push esi
call fcn.0040b05e
fld qword [0x425960]
fsub qword [0x41f350]
fadd qword [0x41f348]
call fcn.0040b0f0
push 0xc
push 0x423554
mov dword [0x423550], eax
call fcn.00402390
add esp, 0x2c
mov esi, eax
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409554
sub eax, ecx
push eax
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x94]
call fcn.004045a0
fldz
mov edi, eax
fst dword [esp + 0x14]
xor eax, eax
fstp dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], eax
push esi
mov dword [esi + 8], eax
call fcn.0040b05e
fld qword [0x425960]
fsub qword [0x41f350]
add esp, 4
fadd qword [0x41f348]
call fcn.0040b0f0
mov edx, dword [esp + 0x9c]
add edx, 0xfffffff5
mov dword [0x423550], eax
cmp edi, edx
je 0x4095cb
mov eax, dword [esp + 0x54]
inc eax
mov dword [esp + 0x54], eax
cmp eax, dword [esp + 0x1c]
jne 0x409020
jmp 0x409618
push 0xb
push edi
lea ecx, [esp + 0x90]
call fcn.00405d60
mov ax, word [0x42533c]
movsx ecx, ax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], 1
fild dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x3c]
fmul dword [esp + 0x1c]
call fcn.0040b0f0
mov word [0x42533c], ax
fld dword [esp + 0x3c]
fsub qword [0x41f340]
fstp dword [esp + 0x3c]
mov esi, dword [esp + 0x50]
fld dword [esp + 0x28]
mov edi, dword [esp + 0x5c]
fsub qword [0x41f8d8]
push 0x408
push 0
push edi
fstp dword [esp + 0x34]
fldz
fst dword [esp + 0x28]
fstp dword [esp + 0x28]
call fcn.0040b1a0
push edi
call fcn.0040b05e
fld qword [0x425960]
fsub qword [0x41f350]
fadd qword [0x41f348]
call fcn.0040b0f0
fldz
mov dword [0x423550], eax
fst dword [esp + 0x2c]
xor eax, eax
fstp dword [esp + 0x2c]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push esi
mov byte [esi + 0xc], al
call fcn.0040b05e
fld qword [0x425960]
fsub qword [0x41f350]
fadd qword [0x41f348]
call fcn.0040b0f0
mov esi, dword [esp + 0x6c]
mov dword [0x423550], eax
fld dword [0x425400]
fadd qword [0x41f8d0]
push 0x31e
push 0
push esi
fadd qword [0x41f8c8]
fmul dword [esp + 0x48]
fstp dword [esp + 0x48]
fld dword [0x425400]
fsub qword [0x41f340]
fstp dword [0x425400]
fldz
fst dword [esp + 0x3c]
fstp dword [esp + 0x3c]
call fcn.0040b1a0
push esi
call fcn.0040b05e
fld qword [0x425960]
fsub qword [0x41f350]
fadd qword [0x41f348]
call fcn.0040b0f0
fldz
mov esi, dword [esp + 0x50]
push 0xaf1
mov dword [0x423550], eax
fst dword [esp + 0x44]
push 0
fstp dword [esp + 0x48]
push esi
call fcn.0040b1a0
push esi
call fcn.0040b05e
fld qword [0x425960]
fsub qword [0x41f350]
fadd qword [0x41f348]
call fcn.0040b0f0
push 0x40
lea edx, [esp + 0xdc]
push 0
push edx
mov dword [0x423550], eax
call fcn.0040b1a0
add esp, 0x40
cmp dword [esp + 0x34], 0
je 0x409a28
mov eax, dword [esp + 0x78]
push 0x708
push eax
call fcn.004034b0
fld dword [esp + 0x38]
fmul qword [str.Yu_l]
add esp, 8
fstp qword [str.Yu_l]
fld dword [esp + 0x30]
cmp dword [esp + 0x9c], 0x200
fsub qword [0x41f340]
fstp dword [esp + 0x30]
jbe 0x409a28
push 0x370
call fcn.0040b269
mov ecx, dword [esp + 0x44]
movzx edx, word [0x423040]
add ecx, 0x4e7b6cbd
imul ecx, edx
mov word [0x423040], cx
inc dword [esp + 0x44]
mov ebx, eax
fld qword [0x424d70]
mov ax, word [esp + 0x1c]
fsub qword [0x41f8c0]
movsx ecx, ax
fadd qword [0x41f8b8]
mov dword [esp + 0x20], ecx
add esp, 4
fild dword [esp + 0x1c]
fmulp st(1)
call fcn.0040b0f0
push ebx
mov word [esp + 0x1c], ax
push 0xeb
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
call fcn.00403930
fld dword [str._l4]
movzx edx, word [0x425944]
fadd qword [0x41f8b0]
movsx eax, dx
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fsubp st(1)
call fcn.0040b0f0
push 3
mov word [esp + 0x44], ax
push 0x42521c
call fcn.00402390
mov esi, eax
push esi
push ebx
call fcn.0040bd76
fldz
mov edi, eax
fst dword [esp + 0x34]
xor eax, eax
fstp dword [esp + 0x34]
mov word [esi], ax
push esi
mov byte [esi + 2], al
call fcn.0040b05e
fld qword [0x425960]
fsub qword [0x41f350]
add esp, 0x1c
fadd qword [0x41f348]
call fcn.0040b0f0
mov dword [0x423550], eax
fld qword [esp + 0x6c]
cmp dword [esp + 0xa0], 0x10
fadd qword [0x41f8a8]
mov eax, dword [esp + 0x8c]
fstp qword [esp + 0x6c]
jae 0x4098b9
lea eax, [esp + 0x8c]
mov ecx, dword [esp + 0x9c]
push edi
push 1
push ecx
push eax
call fcn.0040bc30
push edi
call fcn.0040ba52
add esp, 0x14
push 0x104
lea eax, [ebx + 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movzx edx, word [0x423580]
sub edx, 0x6c4f01eb
push 0x15
mov word [0x423580], dx
push 0x423470
call fcn.00402390
push 0x20
push 0x4251f0
mov edi, eax
call fcn.00402390
mov esi, eax
mov eax, dword [0x4277c0]
push eax
push esi
lea eax, [ebx + 0x104]
push eax
push edi
lea eax, [ebx + 0x208]
push 0x168
push eax
call fcn.0040b92c
fldz
xor eax, eax
fst dword [esp + 0x44]
mov dword [esi], eax
fstp dword [esp + 0x44]
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
push esi
mov dword [esi + 0x1c], eax
call fcn.0040b05e
fld qword [0x425960]
fsub qword [0x41f350]
fadd qword [0x41f348]
call fcn.0040b0f0
mov dword [0x423550], eax
fld qword [0x4250e8]
mov cx, word [0x42367c]
fsubr qword [0x41f8a0]
movsx edx, cx
mov dword [esp + 0x48], edx
fild dword [esp + 0x48]
faddp st(1)
call fcn.0040b0f0
fldz
mov word [0x42367c], ax
fst dword [esp + 0x48]
xor eax, eax
fstp dword [esp + 0x48]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
push edi
mov byte [edi + 0x14], al
call fcn.0040b05e
fld qword [0x425960]
fsub qword [0x41f350]
fadd qword [0x41f348]
call fcn.0040b0f0
mov dword [0x423550], eax
push 1
mov eax, dword [0x4277c0]
push eax
call fcn.00401f00
lea eax, [ebx + 0x208]
push eax
push ebx
call fcn.00401990
add esp, 0x40
push 0x370
push 0
push ebx
call fcn.0040b1a0
push ebx
call fcn.0040b05e
add esp, 0x10
push 0x15f90
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409a28
fstp st(0)
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x4277c0]
push 0
push ecx
call fcn.00401f00
add esp, 8
test eax, eax
jne 0x408df0
fld qword [0x4259d0]
mov edx, dword [0x4277c8]
fsub qword [0x41f898]
mov eax, dword [0x427304]
push edx
push eax
fstp qword [0x4259d0]
call fcn.00401990
jmp 0x408de7