Function at 0x401610
Capabilities:
Create thread
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x41a790
push 0x67
push esi
call edi
push 0x64
push 0x41a728
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401880
mov eax, dword [ebp + 0x14]
push eax
mov ecx, esi
call fcn.00401900
add esp, 4
test eax, eax
jne 0x40165a
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.00402df0
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push 0
push 0
push 0
push 0x401120
push 0
push 0
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x416684
push str.tdaau.dat
mov dword [0x41ad6c], 0x4015d0
mov dword [0x41ad70], 0x401250
call fcn.00408c14
mov esi, eax
add esp, 8
test esi, esi
jne 0x4016db
cmp dword [0x41ac58], eax
je 0x401791
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401791
push eax
call fcn.00408c53
push eax
call dword [0x41ac58]
add esp, 8
jmp 0x401791
push esi
push 0x1e
push 1
push 0x41a5f4
call fcn.00408f07
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x10
cmp eax, 0x1e
je 0x401717
cmp dword [0x41ac58], 0
je 0x401717
call edi
test eax, eax
je 0x401717
push eax
call fcn.00408c53
push eax
call dword [0x41ac58]
add esp, 8
push esi
push 7
push 1
push 0x41a5ec
call fcn.00408f07
add esp, 0x10
cmp eax, 7
je 0x40174d
cmp dword [0x41ac58], 0
je 0x40174d
call edi
test eax, eax
je 0x40174d
push eax
call fcn.00408c53
push eax
call dword [0x41ac58]
add esp, 8
push esi
push 0x104
push 1
push 0x41a4e8
call fcn.00408f07
add esp, 0x10
cmp eax, 0x104
je 0x401788
cmp dword [0x41ac58], 0
je 0x401788
call edi
test eax, eax
je 0x401788
push eax
call fcn.00408c53
push eax
call dword [0x41ac58]
add esp, 8
push esi
call fcn.00409162
add esp, 4
push 0x41a5ec
call fcn.00403b07
push eax
call fcn.00402670
add esp, 8
test al, al
jne 0x4017eb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Can_not_connect_to_server__Error:_d
call fcn.00402c60
add esp, 8
call fcn.00402e70
cmp byte [0x41a5f3], 0
je 0x4017dc
mov eax, dword [0x41b814]
test eax, eax
je 0x4017dc
push eax
call fcn.00409162
add esp, 4
push 0
mov byte [0x41a5f3], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
call esi
test eax, eax
je 0x401843
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x1c]
push edx
push eax
push ecx
call edi
test eax, eax
jne 0x401832
lea edx, [ebp - 0x1c]
push edx
call ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
call esi
test eax, eax
jne 0x401810
pop ebx
cmp byte [0x41a5f3], 0
je 0x40185e
mov eax, dword [0x41b814]
test eax, eax
je 0x40185e
push eax
call fcn.00409162
add esp, 4
mov edx, dword [0x41a4e4]
push edx
mov byte [0x41a5f3], 0
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10