Function at 0x4036b0
Capabilities:
Check if file exists
Copy file
Create directory
Create process on windows
Get common file path
Initialize winsock library
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55c0ba
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1434
call fcn.0052f2b0
mov eax, dword [0x5b5450]
xor eax, esp
mov dword [esp + 0x1430], eax
push ebx
push esi
push edi
mov eax, dword [0x5b5450]
xor eax, esp
push eax
lea eax, [esp + 0x1448]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.0041b13c
push 0xc
call fcn.00418313
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x1450], 0
test eax, eax
je 0x403741
mov ecx, eax
call fcn.0041b903
mov esi, eax
jmp 0x403743
xor esi, esi
push str.Local_AppWizard_Generated_Applications
mov ecx, edi
mov dword [esp + 0x1454], 0xffffffff
call fcn.0041c31e
lea eax, [esp + 0x2ac]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403789
push 0x10
push 0x591ac8
push 0x591ad0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0052d98d
mov edx, dword [edi + 0x48]
cmp byte [edx], 0
je 0x403827
test edx, edx
jne 0x40379d
xor ecx, ecx
jmp 0x4037ab
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4037a2
sub ecx, ebx
push ecx
push edx
mov ecx, 0x5bd48c
call fcn.004032e0
push ecx
lea ecx, [esp + 0x60]
call fcn.00404af0
lea eax, [esp + 0x5c]
mov dword [esp + 0x1450], 7
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.0041ca5c
call dword [sym.imp.WS2_32.dll_WSACleanup]
test esi, esi
je 0x4037ed
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1450], 0xffffffff
call fcn.00404db0
xor eax, eax
mov ecx, dword [esp + 0x1448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1430]
xor ecx, esp
call fcn.0052c359
mov esp, ebp
pop ebp
ret
call fcn.00403530
push 0xffffffffffffffff
push 0
push 0x5b6e18
lea ecx, [esp + 0x240]
mov dword [esp + 0x254], 0xf
mov dword [esp + 0x250], 0
mov byte [esp + 0x240], 0
call fcn.00402540
push 0xffffffffffffffff
mov dword [esp + 0x1454], 1
push 0
push 0x5b6e18
lea ecx, [esp + 0x258]
mov dword [esp + 0x26c], 0xf
mov dword [esp + 0x268], 0
mov byte [esp + 0x258], 0
call fcn.00402540
push 0x10
push 0x591ae8
lea ecx, [esp + 0x23c]
mov byte [esp + 0x1458], 2
call fcn.00403e30
lea eax, [esp + 0x43c]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [esp + 0x43c], 0
mov dword [esp + 0x218], 0xf
mov dword [esp + 0x214], 0
mov byte [esp + 0x204], 0
jne 0x4038f7
xor ecx, ecx
jmp 0x40390a
lea ecx, [esp + 0x43c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403901
sub ecx, edx
push ecx
lea eax, [esp + 0x440]
push eax
lea ecx, [esp + 0x20c]
call fcn.004023c0
mov byte [esp + 0x1450], 3
push 0x15
push str.pg_download_temp_file
lea ecx, [esp + 0x29c]
mov dword [esp + 0x2b0], 0xf
mov dword [esp + 0x2ac], 0
mov byte [esp + 0x29c], 0
call fcn.004023c0
lea eax, [esp + 0x294]
push eax
lea edx, [esp + 0x208]
lea ecx, [esp + 0x280]
mov byte [esp + 0x1454], 4
call fcn.00404060
mov edx, eax
lea ecx, [esp + 0x268]
mov byte [esp + 0x1454], 5
call fcn.00404120
add esp, 4
lea ecx, [esp + 0x204]
push eax
call fcn.00403c80
cmp dword [esp + 0x278], 0x10
jb 0x4039ba
push dword [esp + 0x264]
call fcn.00418340
add esp, 4
mov byte [esp + 0x1450], 4
cmp dword [esp + 0x290], 0x10
mov dword [esp + 0x278], 0xf
mov dword [esp + 0x274], 0
mov byte [esp + 0x264], 0
jb 0x4039f9
push dword [esp + 0x27c]
call fcn.00418340
add esp, 4
cmp dword [esp + 0x218], 0x10
lea eax, [esp + 0x204]
cmovae eax, dword [esp + 0x204]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x403a59
cmp dword [esp + 0x218], 0x10
lea eax, [esp + 0x204]
cmovae eax, dword [esp + 0x204]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x403a59
push 0x10
push 0x591ac8
push 0x591b14
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0052d98d
mov dword [esp + 0x230], 0xf
mov dword [esp + 0x22c], 0
mov byte [esp + 0x21c], 0
push 0x591ae8
lea edx, [esp + 0x208]
lea ecx, [esp + 0x280]
mov byte [esp + 0x1454], 6
call fcn.004041a0
add esp, 4
lea ecx, [esp + 0x21c]
push eax
call fcn.00403c80
cmp dword [esp + 0x290], 0x10
jb 0x403ac0
push dword [esp + 0x27c]
call fcn.00418340
add esp, 4
cmp dword [esp + 0x230], 0x10
lea eax, [esp + 0x21c]
cmovae eax, dword [esp + 0x21c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esp + 0x230], 0x10
lea ecx, [esp + 0x21c]
cmovae ecx, dword [esp + 0x21c]
cmp dword [esp + 0x248], 0x10
push 0
lea eax, [esp + 0x238]
cmovae eax, dword [esp + 0x238]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x403b39
push 0x10
push 0x591ac8
push 0x591b40
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0052d98d
cmp dword [esp + 0x260], 0x10
lea eax, [esp + 0x24c]
cmovae eax, dword [esp + 0x24c]
push eax
push 0x591ba8
lea eax, [esp + 0x444]
push 0x1000
push eax
call fcn.0052d9a1
push 0x3c
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00530070
add esp, 0x1c
cmp dword [esp + 0x230], 0x10
lea eax, [esp + 0x21c]
cmovae eax, dword [esp + 0x21c]
cmp dword [esp + 0x218], 0x10
mov dword [esp + 0x30], eax
lea eax, [esp + 0x43c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x204]
cmovae eax, dword [esp + 0x204]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x30], str.open
mov dword [esp + 0x40], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x403c03
push 0x10
push 0x591ac8
push 0x591bb4
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0052d98d
push 0
call fcn.0052d98d
int3