Function at 0x404610
Capabilities:
Create thread
Shutdown system
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x800c
mov esi, 0x64
call fcn.004054ad
mov ebx, eax
mov ecx, 0x2003
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x20]
add esp, 4
xor ebp, ebp
mov eax, dword [edi]
add eax, 0xffffff9c
cmp eax, 0xf
ja case.0x404648.101
jmp dword [eax*4 + 0x40493c]
mov eax, dword [edi + 4]
push eax
call fcn.004035a0
add esp, 4
mov dword [ebx + 4], eax
mov dword [ebx], 0x3ea
mov esi, 0xc
jmp 0x4048c2
push 0x41c
call fcn.004054ad
lea esi, [edi + 4]
mov ecx, 0x107
mov edi, eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push ebp
push eax
push 0x401be0
jmp 0x40472d
mov eax, dword [0x411bac]
cmp eax, ebp
jne 0x4046b3
mov dword [ebx + 4], 2
mov dword [ebx], 0x3e8
jmp 0x4048bd
push 2
push eax
call dword [sym.imp.USER32.dll_EndDialog]
test eax, eax
je 0x4046d4
mov dword [ebx + 4], ebp
mov dword [0x411bac], ebp
mov dword [ebx], 0x3e8
jmp 0x4048bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
mov dword [0x411bac], ebp
mov dword [ebx], 0x3e8
jmp 0x4048bd
cmp dword [0x411bac], ebp
jne case.0x404648.100
mov dword [ebx + 4], 2
mov dword [ebx], 0x3e8
jmp 0x4048bd
push 0x41c
call fcn.004054ad
add esp, 4
lea edx, [esp + 0x1c]
lea esi, [edi + 4]
mov ecx, 0x107
push edx
mov edi, eax
push ebp
push eax
rep movsd dword es:[edi], dword [esi]
push 0x401910
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 4], ebp
mov dword [ebx], 0x3e8
jmp 0x4048bd
mov eax, dword [0x411ba8]
cmp eax, ebp
jne 0x40475e
mov dword [ebx + 4], 2
mov dword [ebx], 0x3e8
jmp 0x4048bd
push 2
push eax
call dword [sym.imp.USER32.dll_EndDialog]
test eax, eax
je 0x40477f
mov dword [ebx + 4], ebp
mov dword [0x411ba8], ebp
mov dword [ebx], 0x3e8
jmp 0x4048bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
mov dword [0x411ba8], ebp
mov dword [ebx], 0x3e8
jmp 0x4048bd
cmp dword [0x411ba8], ebp
jne case.0x404648.100
mov dword [ebx + 4], 2
mov dword [ebx], 0x3e8
jmp 0x4048bd
mov ecx, dword [edi + 4]
mov eax, 1
cmp ecx, ebp
je 0x4047c4
mov eax, 5
push ebp
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x404836
mov ecx, dword [edi + 4]
mov eax, 2
cmp ecx, ebp
je 0x4047df
mov eax, 6
push ebp
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x404836
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetSystemTime]
jmp 0x404836
mov dword [ebx + 4], ebp
mov dword [ebx], 0x3e8
mov eax, dword [0x40ef30]
mov dword [ebx + 0xc], eax
mov ecx, dword [0x40ef34]
mov dword [ebx + 0x10], ecx
mov edx, dword [0x411bb0]
mov dword [ebx + 0x14], edx
mov eax, dword [0x411bb4]
mov dword [ebx + 0x18], eax
jmp 0x4048bd
mov ecx, dword [esp + 0x18]
add edi, 4
push ecx
push edi
call fcn.00402040
add esp, 8
test eax, eax
jne case.0x404648.100
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
mov dword [ebx], 0x3e8
jmp 0x4048bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
mov dword [ebx], 0x3e7
mov edx, dword [edi + 4]
push edx
push ebx
call fcn.00404df0
add esp, 8
test eax, eax
je 0x40489f
mov ecx, dword [ebx + 8]
mov dword [ebx], 0x3e8
mov eax, ecx
shl eax, 6
sub eax, ecx
shl eax, 2
cmp eax, 0x8000
jae 0x404891
lea esi, [eax + 0x78]
mov dword [ebx + 4], ebp
jmp 0x4048c2
mov esi, 0x7fff
mov dword [ebx + 4], 0xea
jmp 0x4048c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
mov dword [ebx], 0x3e7
jmp 0x4048c2
mov dword [ebx + 4], 0xea61
mov dword [ebx], 0x3e7
mov esi, 0x64
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov edx, dword [eax + 4]
lea edi, [eax + 0xc]
push edi
push ecx
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404928
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x404921
mov esi, dword [esp + 0x18]
push 0xffffffffffffffff
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push ebp
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [esp + 0x10]
push eax
push str.GetOverlappedResult:__d_n
call fcn.004057a0
add esp, 8
jmp 0x404928
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x3c], ebp
cmp ebx, ebp
je 0x404935
push ebx
call fcn.00405444
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret