Function at 0x402d70
Capabilities:
Check if file exists
Create directory
Create process on windows
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404653
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0
push 0
push 0
mov esi, ecx
push 0
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [ebp - 0x20]
mov dword [0x408404], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 1
push 0x1a
lea eax, [ebp - 0x1c4]
push eax
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x4062a8
lea ecx, [ebp - 0x1c4]
push ecx
lea edx, [ebp - 0x20]
push str._s_s
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
lea ecx, [ebp - 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402e12
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x405608
lea ecx, [ebp - 0x1c]
call dword [0x40511c]
push 0x405608
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call dword [0x40511c]
lea eax, [ebp - 0x14]
mov bl, 2
push eax
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.00401be0
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x24]
push 0x405770
push edx
mov byte [ebp - 4], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
push eax
push ecx
lea edx, [ebp - 0x1c]
push str._s_s.exe
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea eax, [ebp - 0x14]
mov bl, 4
push eax
mov byte [ebp - 4], bl
call fcn.004020b0
add esp, 4
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push str._S__D
push edx
call fcn.00401f80
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x40]
call fcn.00401050
push 1
lea ecx, [esi + 0x84]
mov byte [ebp - 4], 7
mov dword [ebp - 0x3c], esi
call sub.MFC71.DLL_CWnd::ShowWindow
mov ecx, dword [ebp - 0x3c]
push 0
add ecx, 0x12c
call sub.MFC71.DLL_CWnd::ShowWindow
push 0
push 0x3f6
mov ecx, esi
call sub.MFC71.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC71.DLL_CWnd::ShowWindow
push 0
push 0x3f7
mov ecx, esi
call sub.MFC71.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC71.DLL_CWnd::ShowWindow
mov ecx, dword [ebp - 0x3c]
push 0x40626c
add ecx, 0x180
call sub.MFC71.DLL_CWnd::SetWindowTextA
mov ecx, dword [ebp - 0x3c]
push 1
call sub.MFC71.DLL_CWnd::ShowWindow
push 0
mov dword [esi + 0x1dc], 1
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCR71.dll_time]
mov edi, eax
add esp, 4
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00402870
push str._abc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x28]
push edx
mov byte [ebp - 4], 9
call fcn.00401270
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x406260
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00401270
add esp, 0xc
push edi
mov ecx, eax
mov byte [ebp - 4], 0xb
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [ebp - 0x40]
push eax
push 0
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x4030f8
mov ecx, dword [ebp - 0x3c]
push eax
add ecx, 0x84
call sub.MFC71.DLL_CWnd::ShowWindow
mov ecx, dword [ebp - 0x3c]
push 0
add ecx, 0x12c
call sub.MFC71.DLL_CWnd::ShowWindow
mov ecx, dword [ebp - 0x3c]
push 0x405608
add ecx, 0xd8
call sub.MFC71.DLL_CWnd::SetWindowTextA
mov ecx, dword [ebp - 0x3c]
push 1
push 0x2d
push 0x104
push 0x3c
push 0x2d
add ecx, 0x180
call sub.MFC71.DLL_CWnd::MoveWindow
mov ecx, dword [ebp - 0x3c]
push 0x40623c
add ecx, 0x180
call sub.MFC71.DLL_CWnd::SetWindowTextA
push 1
push 0x64
call fcn.004021b0
mov edi, dword [esi + 0x20]
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x40314a
push 0x405c60
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push 7
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
lea ecx, [ebp - 0xc0]
call fcn.00401350
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0xc
call sub.MFC71.DLL_CDialog::DoModal
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x158]
jmp 0x40313b
push 0x405c60
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push 7
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
lea ecx, [ebp - 0xc0]
call fcn.00401350
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0xd
call sub.MFC71.DLL_CDialog::DoModal
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x158]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 9
call fcn.00401410
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x40319f
mov eax, dword [0x408404]
push eax
mov dword [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [0x408404]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
push ecx
call edi
cmp eax, 0x102
jne 0x4031ef
lea ecx, [ecx]
lea edx, [ebp - 0x24]
push edx
mov ecx, esi
call fcn.00401b10
mov eax, dword [0x408404]
push 0x1f4
push eax
call edi
cmp eax, 0x102
je 0x4031d0
mov ecx, dword [0x408404]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call sub.MFC71.DLL_CFile::Remove
mov ecx, esi
call fcn.00402a30
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00401000
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret