Function at 0x41679d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa60
push ebx
push esi
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x4a0]
call fcn.00412464
test al, al
jne 0x4167c3
call fcn.00412813
test al, al
je 0x4167cf
push esi
call fcn.00409e5a
pop ecx
jmp 0x416a3e
push 0x46b89c
lea eax, [ebp - 0x400]
push eax
call sub.cw3230mt.DLL__strcpy
add esp, 8
push str.Bin_
lea edx, [ebp - 0x400]
push edx
call sub.cw3230mt.DLL__strcat
add esp, 8
call fcn.0041ed98
push eax
lea ecx, [ebp - 0x400]
push ecx
call sub.cw3230mt.DLL__strcat
add esp, 8
lea eax, [ebp - 0x400]
push eax
call sub.KERNEL32.dll_LoadLibraryA
mov dword [0x4656c0], eax
cmp dword [0x4656c0], 0
je 0x4169af
push str.DllEntryPoint
push dword [0x4656c0]
call sub.KERNEL32.dll_GetProcAddress
mov edx, eax
mov ecx, dword [0x465670]
mov dword [ebx], ecx
mov dword [ebx + 4], 0x4060a2
mov dword [ebx + 8], 0x406602
mov dword [ebx + 0xc], 0x406745
mov dword [ebx + 0x10], 0x406899
mov dword [ebx + 0x14], 0x4069ef
mov dword [ebx + 0x18], 0x4069f4
mov dword [ebx + 0x1c], 0x406a76
mov dword [ebx + 0x20], 0x408214
mov dword [ebx + 0x24], 0x407056
mov dword [ebx + 0x28], 0x40607f
mov dword [ebx + 0x2c], 0x4060e2
mov dword [ebx + 0x30], 0x40610b
mov dword [ebx + 0x34], 0x406aba
mov dword [ebx + 0x38], 0x406b17
mov dword [ebx + 0x3c], 0x406134
mov dword [ebx + 0x40], 0x406b29
mov dword [ebx + 0x44], 0x406c33
mov dword [ebx + 0x48], 0x406c4a
mov dword [ebx + 0x4c], 0x406ec8
mov dword [ebx + 0x50], 0x4073a6
mov dword [ebx + 0x54], 0x40759a
mov dword [ebx + 0x58], 0x4078d1
mov dword [ebx + 0x5c], 0x407a88
mov dword [ebx + 0x60], 0x407c4c
mov dword [ebx + 0x64], 0x46b89c
mov dword [ebx + 0x68], 0x407e53
mov dword [ebx + 0x6c], 0x408784
mov dword [ebx + 0x70], 0x405e88
mov dword [ebx + 0x74], 0x405f4b
cmp byte [0x4656db], 0
je 0x41691f
mov eax, 0xbc614f
jmp 0x416924
mov eax, 0xbc614e
push ebx
push eax
push 0
call edx
test eax, eax
je 0x416993
mov edx, dword [ebx + 0x78]
mov dword [0x46beac], edx
mov ecx, dword [ebx + 0x7c]
mov dword [0x46beb0], ecx
mov eax, dword [ebx + 0x80]
mov dword [0x46beb4], eax
mov edx, dword [ebx + 0x84]
mov dword [0x46beb8], edx
mov ecx, dword [ebx + 0x88]
mov dword [0x46bebc], ecx
mov eax, dword [ebx + 0x8c]
mov dword [0x46bec0], eax
mov edx, dword [ebx + 0x90]
mov dword [0x46bec4], edx
mov ecx, dword [ebx + 0x98]
mov dword [0x46bec8], ecx
mov eax, dword [ebx + 0x9c]
mov dword [0x46becc], eax
jmp 0x4169e2
push 0x10
push str.PWS_Simulator
push str.Fail_to_create_the_main_tasks_function_table.
push 0
call fcn.00403d2c
xor eax, eax
jmp 0x416a3e
call sub.KERNEL32.dll_GetLastError
push eax
push str.Fail_to_install_the_main_task.__error_code___d_
lea edx, [ebp - 0x5a0]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x10
push str.PWS_Simulator
lea ecx, [ebp - 0x5a0]
push ecx
push 0
call fcn.00403d2c
xor eax, eax
jmp 0x416a3e
push 0
push dword [0x4656b4]
push dword [0x465674]
push dword [0x46b770]
call dword [0x46bec8]
add esp, 0x10
push 0x46b774
push 2
push 0
push dword [0x46bec4]
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [0x4656bc], eax
cmp dword [0x4656bc], 0
jne 0x416a3c
push 0x10
push str.PWS_Simulator
push str.Fail_to_create_Main4000_thread.
push 0
call fcn.00403d2c
xor eax, eax
jmp 0x416a3e
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret