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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40a646
push eax
mov eax, 0x242bc
mov dword fs:[0], esp
call fcn.0040a320
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.00402480
add esi, 4
add esp, 0xc
mov ecx, esi
call fcn.00401640
push 0x32
push pe_nt_image_headers32
mov ecx, esi
call fcn.00401540
push 0x1770
push 1
lea ecx, [esp + 0x18]
call fcn.00401760
test eax, eax
je 0x403a01
push 0x6e
push ebp
lea ecx, [esp + 0x18]
call fcn.004018a0
test eax, eax
je 0x403a01
push edi
mov edi, dword [esp + 0x242f4]
test edi, edi
je 0x402e5c
cmp byte [edi], 0
je 0x402e5c
lea edx, [esp + 0x148]
jmp 0x402e68
lea edx, [esp + 0x148]
mov edi, 0x40d1f4
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 0x402ea7
cmp eax, 0xffffffff
jne 0x402ebd
lea edx, [esp + 0x2c8]
push 0x1800
push edx
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x402ec6
cmp eax, 0xffffffff
jne 0x402edc
lea eax, [esp + 0x2c8]
push 0x1800
push eax
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x4039a8
cmp eax, 0xffffffff
je 0x4039a8
push 3
lea ecx, [esp + 0x2cc]
push 0x40d1f0
push ecx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x4039a8
mov esi, dword [esp + 0x242e0]
lea edx, [esp + 0x2c8]
push esi
push 0x40d1e4
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 0x402f72
cmp eax, 0xffffffff
jne 0x402f88
lea edx, [esp + 0x2c8]
push 0x1800
push edx
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x402f91
cmp eax, 0xffffffff
jne 0x402fa7
lea eax, [esp + 0x2c8]
push 0x1800
push eax
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x4039a8
cmp eax, 0xffffffff
je 0x4039a8
push 3
lea ecx, [esp + 0x2cc]
push 0x40d1f0
push ecx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x4039a8
mov edx, dword [esp + 0x242e4]
lea eax, [esp + 0x2c8]
push edx
push 0x40d1d8
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 0x40303d
cmp eax, 0xffffffff
jne 0x403053
lea eax, [esp + 0x2c8]
push 0x1800
push eax
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x40305c
cmp eax, 0xffffffff
jne 0x403072
lea ecx, [esp + 0x2c8]
push 0x1800
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x4039a8
cmp eax, 0xffffffff
je 0x4039a8
push 3
lea edx, [esp + 0x2cc]
push 0x40d1f0
push edx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x4039a8
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c8]
push 0x40d1d0
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 0x403104
cmp eax, 0xffffffff
jne 0x40311a
lea eax, [esp + 0x2c8]
push 0x1800
push eax
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x403123
cmp eax, 0xffffffff
jne 0x403139
lea ecx, [esp + 0x2c8]
push 0x1800
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x4039a8
cmp eax, 0xffffffff
je 0x4039a8
push 3
lea edx, [esp + 0x2cc]
push 0x40d1f0
push edx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x4039a8
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x48]
push eax
push ecx
lea edx, [esp + 0x2d0]
push 0x40d1c8
push edx
call dword [sym.imp.msvcrt.dll_sscanf]
add esp, 0x10
cmp eax, 2
jne 0x4039a8
lea ecx, [esp + 0x30]
call fcn.00404360
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.00402840
xor edx, edx
mov ecx, 0x64
div ecx
add esp, 8
push edx
push 0
push ebp
call fcn.00402840
xor edx, edx
mov ecx, 0x64
div ecx
add esp, 8
lea eax, [esp + 0x4c]
push edx
lea edx, [esp + 0x150]
push edx
push 0x40d1bc
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
mov eax, dword [esp + 0x40]
add esp, 0x14
test eax, eax
jne 0x403297
push 0
push esi
mov ebx, 1
call fcn.00402840
xor edx, edx
mov ecx, 0x64
div ecx
add esp, 8
push edx
push 0
push ebp
call fcn.00402840
xor edx, edx
mov ecx, 0x64
div ecx
add esp, 8
push edx
lea edx, [esp + 0x50]
push 0x40d1b4
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.00404450
test eax, eax
jne 0x403997
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x34]
call fcn.004043f0
jmp 0x40398e
push 0
push 0
push 0xf003f
push 0
lea edx, [esp + 0x58]
push 0
push edx
push 0x80000002
lea ecx, [esp + 0x4c]
call fcn.00404450
test eax, eax
jne 0x403997
mov edi, dword [esp + 0x242e8]
test edi, edi
jne 0x4032de
push edi
lea eax, [esp + 0x1cc]
push edi
push eax
call fcn.004050f0
add esp, 0xc
jmp 0x403302
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 0x40d1ac
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 0x403347
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 0x403380
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.00401930
cmp eax, 0xffffffff
jne 0x403380
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x4034e1
cmp eax, 0xffffffff
je 0x4034e1
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 0x403484
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 0x403484
lea edx, [esp + 0x48]
lea eax, [esp + 0x44]
push edx
push eax
lea ecx, [esi + 2]
push 0x40d1a4
push ecx
call dword [sym.imp.msvcrt.dll_sscanf]
add esp, 0x10
cmp eax, 2
jne 0x403484
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
cmp edx, eax
jge 0x40345d
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 0x4033e0
lea eax, [esp + 0x2c8]
push 0x40d19c
push eax
call dword [sym.imp.msvcrt.dll_strstr]
add esp, 8
test eax, eax
jne 0x4034dd
lea ecx, [esp + 0x2c8]
cmp esi, ecx
jbe 0x4034cd
mov ebp, dword [esp + 0x24]
lea edx, [esp + 0x2c8]
sub edx, esi
lea eax, [esp + 0x2c8]
add ebp, edx
push ebp
push esi
push eax
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
jmp 0x4034d1
mov ebp, dword [esp + 0x24]
cmp ebp, 0x1800
jl 0x403343
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x40398e
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 0x403964
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.004044f0
test eax, eax
je 0x403964
mov eax, dword [esp + 0x242ec]
mov dword [esp + 0x28], 1
test eax, eax
je 0x40365a
cmp byte [eax], 0
je 0x40365a
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c8]
mov eax, dword [ecx]
push eax
push 0x40d190
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 0x40d19c
push ecx
call dword [sym.imp.msvcrt.dll_strstr]
add esp, 8
test eax, eax
jne 0x403607
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 0x4035ec
push esi
push ebp
lea ecx, [esp + 0x1c]
call fcn.00401930
cmp eax, 0xffffffff
jne 0x4035ec
push esi
push ebp
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x403607
cmp eax, 0xffffffff
je 0x403607
add edi, eax
cmp edi, 0x1800
mov byte [esp + edi + 0x2c8], 0
jl 0x403599
mov al, byte [esp + 0x2c8]
test al, al
je 0x403652
mov edx, dword [esp + 0x242ec]
push 1
push 0
push 0
lea eax, [esp + 0x2d4]
push edx
push eax
call fcn.00402500
add esp, 0x14
test eax, eax
jne 0x403652
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
mov eax, dword [eax]
push eax
call fcn.004045d0
jmp 0x403969
mov eax, dword [esp + 0x28]
test eax, eax
je 0x403638
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c8]
mov eax, dword [ecx]
push eax
push 0x40d184
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 0x4036bb
cmp esi, 0xffffffff
jne 0x4036d3
lea edx, [esp + 0x2c8]
push 0x1800
push edx
lea ecx, [esp + 0x1c]
call fcn.00401930
mov esi, eax
test esi, esi
je 0x4036dc
cmp esi, 0xffffffff
jne 0x4036f4
lea eax, [esp + 0x2c8]
push 0x1800
push eax
lea ecx, [esp + 0x1c]
call fcn.00401930
mov esi, eax
test esi, esi
je 0x40395d
cmp esi, 0xffffffff
je 0x40395d
push 3
lea ecx, [esp + 0x2cc]
push 0x40d1f0
push ecx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x40395d
lea edx, [esp + 0x48]
push edx
push eax
lea eax, [esp + 0x1d0]
push 0x40d180
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40395d
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 0x403969
mov ebp, dword [sym.imp.msvcrt.dll_strstr]
lea edx, [esp + 0x2c8]
push 0x40d160
push edx
mov ebx, 1
call ebp
add esp, 8
test eax, eax
je 0x4037b1
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 0x4037b7
mov edi, dword [sym.imp.msvcrt.dll_fwrite]
lea eax, [esp + 0x2c8]
push 0x40d19c
push eax
call ebp
add esp, 8
test eax, eax
jne 0x403871
push 3
lea ecx, [esp + 0x2cc]
push 0x40d17c
push ecx
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x403871
lea edx, [esp + 0x2c8]
push 0x1800
push edx
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x403810
cmp eax, 0xffffffff
jne 0x403826
lea eax, [esp + 0x2c8]
push 0x1800
push eax
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x40382f
cmp eax, 0xffffffff
jne 0x403845
lea ecx, [esp + 0x2c8]
push 0x1800
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401930
test eax, eax
je 0x403871
cmp eax, 0xffffffff
je 0x403871
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 0x4037b7
push esi
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
test ebx, ebx
je 0x40391e
mov eax, dword [esp + 0x242f0]
test eax, eax
je 0x40391e
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 0x40391e
lea ecx, [esp + 0x2c8]
push 0x1800
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401930
cmp eax, 0xffffffff
jne 0x40391e
lea edx, [esp + 0x2c8]
push 0x1800
push edx
lea ecx, [esp + 0x1c]
call fcn.00401930
cmp ebx, 1
jne 0x403950
lea eax, [esp + 0x1c8]
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, dword [esp + 0x44]
call fcn.00403a40
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.004045d0
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x403969
mov ebx, 0xffffffee
jmp 0x403969
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 0x403507
lea ecx, [esp + 0x30]
call fcn.00404430
lea ecx, [esp + 0x30]
mov byte [esp + 0x242d4], 0
call fcn.004043a0
lea ecx, [esp + 0x2c8]
push 0x40d168
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
lea eax, [esp + 0x2c8]
push 0x800
push eax
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