Function at 0x402d80
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40a446
push eax
mov eax, 0x242bc
mov dword fs:[0], esp
call fcn.0040a120
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], esi
call fcn.00401670
mov ebp, dword [esp + 0x242d8]
push 3
xor ebx, ebx
push 0x20
push ebp
mov dword [esp + 0x242dc], ebx
call fcn.00402450
add esi, 4
add esp, 0xc
mov ecx, esi
call fcn.00401640
push 0x32
push 0x100
mov ecx, esi
call fcn.00401540
push 0x1770
push 1
lea ecx, [esp + 0x18]
call fcn.00401760
test eax, eax
je 0x4039bb
push 0x6e
push ebp
lea ecx, [esp + 0x18]
call fcn.004018a0
test eax, eax
je 0x4039bb
push edi
mov edi, dword [esp + 0x242f4]
test edi, edi
je 0x402e2c
cmp byte [edi], 0
je 0x402e2c
lea edx, [esp + 0x148]
jmp 0x402e38
lea edx, [esp + 0x148]
mov edi, 0x40d1fc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1800
mov eax, ecx
mov esi, edi
mov edi, edx
or ebx, 0xffffffff
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2cc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x402e77
cmp eax, 0xffffffff
jne 0x402e8d
lea edx, [esp + 0x2c8]
push 0x1800
push edx
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x402e96
cmp eax, 0xffffffff
jne 0x402eac
lea eax, [esp + 0x2c8]
push 0x1800
push eax
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x403962
cmp eax, 0xffffffff
je 0x403962
push 3
lea ecx, [esp + 0x2cc]
push 0x40d1f8
push ecx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x403962
mov esi, dword [esp + 0x242e0]
lea edx, [esp + 0x2c8]
push esi
push 0x40d1ec
push edx
mov ebx, 0xfffffffe
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x2d4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x2c8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401900
lea ecx, [esp + 0x2c8]
push 0x1800
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x402f42
cmp eax, 0xffffffff
jne 0x402f58
lea edx, [esp + 0x2c8]
push 0x1800
push edx
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x402f61
cmp eax, 0xffffffff
jne 0x402f77
lea eax, [esp + 0x2c8]
push 0x1800
push eax
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x403962
cmp eax, 0xffffffff
je 0x403962
push 3
lea ecx, [esp + 0x2cc]
push 0x40d1f8
push ecx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x403962
mov edx, dword [esp + 0x242e4]
lea eax, [esp + 0x2c8]
push edx
push 0x40d1e0
push eax
mov ebx, 0xfffffffd
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x2d4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x2cc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401900
lea edx, [esp + 0x2c8]
push 0x1800
push edx
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x40300d
cmp eax, 0xffffffff
jne 0x403023
lea eax, [esp + 0x2c8]
push 0x1800
push eax
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x40302c
cmp eax, 0xffffffff
jne 0x403042
lea ecx, [esp + 0x2c8]
push 0x1800
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x403962
cmp eax, 0xffffffff
je 0x403962
push 3
lea edx, [esp + 0x2cc]
push 0x40d1f8
push edx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x403962
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c8]
push 0x40d1d8
push eax
mov ebx, 0xfffffffc
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x2d0]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x2cc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401900
lea edx, [esp + 0x2c8]
push 0x1800
push edx
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x4030d4
cmp eax, 0xffffffff
jne 0x4030ea
lea eax, [esp + 0x2c8]
push 0x1800
push eax
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x4030f3
cmp eax, 0xffffffff
jne 0x403109
lea ecx, [esp + 0x2c8]
push 0x1800
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x403962
cmp eax, 0xffffffff
je 0x403962
push 3
lea edx, [esp + 0x2cc]
push 0x40d1f8
push edx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x403962
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x48]
push eax
push ecx
lea edx, [esp + 0x2d0]
push 0x40d1d0
push edx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
cmp eax, 2
jne 0x403962
lea ecx, [esp + 0x30]
call fcn.00404310
mov ecx, 0x3e00
xor eax, eax
lea edi, [esp + 0x3acc]
push eax
rep stosd dword es:[edi], eax
mov ecx, 0x800
lea edi, [esp + 0x1ad0]
rep stosd dword es:[edi], eax
push esi
mov byte [esp + 0x242dc], 1
mov ebx, 0xfffffffb
call fcn.00402810
xor edx, edx
mov ecx, 0x64
div ecx
add esp, 8
push edx
push 0
push ebp
call fcn.00402810
xor edx, edx
mov ecx, 0x64
div ecx
add esp, 8
lea eax, [esp + 0x4c]
push edx
lea edx, [esp + 0x150]
push edx
push 0x40d1c4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x40]
add esp, 0x14
test eax, eax
jne 0x403267
push 0
push esi
mov ebx, 1
call fcn.00402810
xor edx, edx
mov ecx, 0x64
div ecx
add esp, 8
push edx
push 0
push ebp
call fcn.00402810
xor edx, edx
mov ecx, 0x64
div ecx
add esp, 8
push edx
lea edx, [esp + 0x50]
push 0x40d1bc
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x148]
lea ecx, [esp + 0x30]
push 0
push 0
push 0xf003f
push 0
push 0
push eax
push 0x80000002
call fcn.00404400
test eax, eax
jne 0x403951
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x34]
call fcn.004043a0
jmp 0x403948
push 0
push 0
push 0xf003f
push 0
lea edx, [esp + 0x58]
push 0
push edx
push 0x80000002
lea ecx, [esp + 0x4c]
call fcn.00404400
test eax, eax
jne 0x403951
mov edi, dword [esp + 0x242e8]
test edi, edi
jne 0x4032ae
push edi
lea eax, [esp + 0x1cc]
push edi
push eax
call fcn.004050a0
add esp, 0xc
jmp 0x4032d2
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c8]
push 0x40d1b4
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x2d0]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x2c8]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00401900
xor ebp, ebp
mov dword [esp + 0x10], ebp
jmp 0x403317
mov ebx, dword [esp + 0x20]
mov esi, 0x1800
lea edi, [esp + ebp + 0x2c8]
sub esi, ebp
lea ecx, [esp + 0x14]
push esi
push edi
call fcn.00401930
cmp eax, 0xffffffff
jne 0x403350
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.00401930
cmp eax, 0xffffffff
jne 0x403350
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x4034aa
cmp eax, 0xffffffff
je 0x4034aa
add ebp, eax
lea eax, [esp + 0x2c8]
push 0x40d160
push eax
mov dword [esp + 0x28], 0xfffffffa
mov dword [esp + 0x2c], ebp
mov byte [esp + ebp + 0x2d0], 0
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
je 0x403454
mov eax, dword [esp + 0x10]
mov ecx, eax
shl ecx, 6
lea ebx, [esp + eax*4 + 0x1acc]
lea ebp, [esp + ecx + 0x3acc]
add ebp, eax
lea eax, [esi + 4]
push 0x40d160
push eax
mov dword [esp + 0x48], eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x403454
lea edx, [esp + 0x48]
lea eax, [esp + 0x44]
push edx
push eax
lea ecx, [esi + 2]
push 0x40d1ac
push ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
cmp eax, 2
jne 0x403454
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
cmp edx, eax
jge 0x40342d
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
add ebp, 0x41
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], edx
mov dword [ebx], ecx
add ebx, 4
mov edx, dword [esp + 0x40]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
push 0x40d160
push edx
call esi
push 0x40d160
push eax
call esi
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4033b0
push 0x40d1a8
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x4034a6
lea eax, [esp + 0x2c8]
cmp esi, eax
jbe 0x403496
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x2c8]
sub ecx, esi
lea edx, [esp + 0x2c8]
add ebp, ecx
push ebp
push esi
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
jmp 0x40349a
mov ebp, dword [esp + 0x24]
cmp ebp, 0x1800
jl 0x403313
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x403948
lea ecx, [esp + 0x1acc]
lea edx, [esp + 0x3acc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
je 0x40391e
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.004044a0
test eax, eax
je 0x40391e
mov eax, dword [esp + 0x242ec]
mov dword [esp + 0x28], 1
test eax, eax
je 0x403610
cmp byte [eax], 0
je 0x403610
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c8]
mov dword [esp + 0x28], 0
mov eax, dword [ecx]
push eax
push 0x40d19c
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x2d4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x2c8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401900
mov byte [esp + 0x2c8], 0
xor edi, edi
lea ecx, [esp + 0x2c8]
push 0x40d194
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x4035d8
mov esi, 0x1800
lea ebp, [esp + edi + 0x2c8]
sub esi, edi
lea ecx, [esp + 0x14]
push esi
push ebp
call fcn.00401930
cmp eax, 0xffffffff
jne 0x4035bd
push esi
push ebp
lea ecx, [esp + 0x1c]
call fcn.00401930
cmp eax, 0xffffffff
jne 0x4035bd
push esi
push ebp
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x4035d8
cmp eax, 0xffffffff
je 0x4035d8
add edi, eax
cmp edi, 0x1800
mov byte [esp + edi + 0x2c8], 0
jl 0x40356a
mov edx, dword [esp + 0x242ec]
push 1
push 0
push 0
lea eax, [esp + 0x2d4]
push edx
push eax
call fcn.004024d0
add esp, 0x14
test eax, eax
je 0x403604
mov dword [esp + 0x28], 1
jmp 0x403610
mov eax, dword [esp + 0x28]
test eax, eax
je 0x403923
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c8]
mov eax, dword [ecx]
push eax
push 0x40d188
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x2d4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x2c8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401900
lea ecx, [esp + 0x2c8]
push 0x1800
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401930
mov esi, eax
test esi, esi
je 0x403671
cmp esi, 0xffffffff
jne 0x403689
lea edx, [esp + 0x2c8]
push 0x1800
push edx
lea ecx, [esp + 0x1c]
call fcn.00401930
mov esi, eax
test esi, esi
je 0x403692
cmp esi, 0xffffffff
jne 0x4036aa
lea eax, [esp + 0x2c8]
push 0x1800
push eax
lea ecx, [esp + 0x1c]
call fcn.00401930
mov esi, eax
test esi, esi
je 0x403917
cmp esi, 0xffffffff
je 0x403917
push 3
lea ecx, [esp + 0x2cc]
push 0x40d1f8
push ecx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x403917
lea edx, [esp + 0x48]
push edx
push eax
lea eax, [esp + 0x1d0]
push 0x40d184
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x403917
lea ecx, [esp + 0x48]
push 0x40d15c
push ecx
mov ebx, 0xfffffff8
mov byte [esp + esi + 0x2d0], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x403923
lea edx, [esp + 0x2c8]
push 0x40d160
push edx
mov ebx, 1
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x403765
lea edx, [eax + 2]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
not ecx
dec ecx
push ebx
push ecx
push edx
call edi
add esp, 0x10
jmp 0x40376b
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
mov ebp, dword [sym.imp.MSVCRT.dll_strncmp]
lea eax, [esp + 0x2c8]
push 0x40d17c
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x40382b
push 3
lea ecx, [esp + 0x2cc]
push 0x40d1a8
push ecx
call ebp
add esp, 0xc
test eax, eax
je 0x40382b
lea edx, [esp + 0x2c8]
push 0x1800
push edx
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x4037ca
cmp eax, 0xffffffff
jne 0x4037e0
lea eax, [esp + 0x2c8]
push 0x1800
push eax
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x4037e9
cmp eax, 0xffffffff
jne 0x4037ff
lea ecx, [esp + 0x2c8]
push 0x1800
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x40382b
cmp eax, 0xffffffff
je 0x40382b
push esi
push 1
lea edx, [esp + 0x2d0]
push eax
push edx
mov byte [esp + eax + 0x2d8], 0
call edi
mov ebx, eax
add esp, 0x10
test ebx, ebx
jg 0x403771
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test ebx, ebx
je 0x4038d8
mov eax, dword [esp + 0x242f0]
test eax, eax
je 0x4038d8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x2c8]
mov eax, dword [eax]
push eax
push 0x40d170
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x2d4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x2c8]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00401900
lea eax, [esp + 0x2c8]
push 0x1800
push eax
lea ecx, [esp + 0x1c]
call fcn.00401930
cmp eax, 0xffffffff
jne 0x4038d8
lea ecx, [esp + 0x2c8]
push 0x1800
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401930
cmp eax, 0xffffffff
jne 0x4038d8
lea edx, [esp + 0x2c8]
push 0x1800
push edx
lea ecx, [esp + 0x1c]
call fcn.00401930
cmp ebx, 1
jne 0x40390a
lea eax, [esp + 0x1c8]
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, dword [esp + 0x44]
call fcn.004039f0
mov edx, dword [esp + 0x20]
mov ebx, eax
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x34]
mov eax, dword [eax]
push eax
call fcn.00404580
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x403923
mov ebx, 0xffffffee
jmp 0x403923
mov ebx, 1
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add edx, 0x41
add ecx, 4
dec eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jne 0x4034d0
lea ecx, [esp + 0x30]
call fcn.004043e0
lea ecx, [esp + 0x30]
mov byte [esp + 0x242d4], 0
call fcn.00404350
lea edx, [esp + 0x2c8]
push 0x40d168
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x2d0]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x2c8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401900
lea ecx, [esp + 0x2c8]
push 0x800
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401930
lea ecx, [esp + 0x14]
call fcn.004017e0
pop edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x242d0], 0xffffffff
call fcn.004016d0
mov ecx, dword [esp + 0x242c8]
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x242c8
ret 0x1c