Function at 0x45bc3b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x46a010]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x49c], eax
xor ebx, ebx
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x4a0], eax
mov esi, ebx
mov eax, dword [ebp + 0x20]
push edi
mov dword [ebp - 0x4a4], eax
mov edi, edx
xor eax, eax
mov dword [ebp - 0x498], edi
push 0x3fe
mov word [ebp - 0x48c], ax
lea eax, [ebp - 0x48a]
push ebx
push eax
mov dword [ebp - 0x494], ecx
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x8c], ax
lea eax, [ebp - 0x8a]
push 0x7e
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x490], ebx
push 0xa4
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
test eax, eax
je 0x45bcd8
mov ecx, eax
call fcn.0045ba44
mov ebx, eax
test ebx, ebx
je 0x45be65
mov eax, dword [ebx]
mov esi, ebx
push ebx
call dword [eax + 4]
push dword [ebp + 0x14]
mov eax, dword [ebx + 0x20]
mov ecx, ebx
push dword [ebp + 0x1c]
push dword [ebp - 0x4a0]
push dword [ebp - 0x49c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push dword [ebp - 0x494]
call fcn.0045bf58
mov edi, eax
test edi, edi
jns 0x45bd64
mov eax, dword [0x46a020]
cmp eax, 0x46a020
je 0x45be5b
test byte [eax + 0x1c], 8
je 0x45be5b
cmp byte [eax + 0x19], 2
jb 0x45be5b
push edi
push 0x40a3c4
call fcn.00411040
push eax
mov eax, dword [0x46a020]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
mov edx, 0x40ab90
pop ecx
call fcn.00410eec
jmp 0x45be5b
mov ecx, ebx
call fcn.0045d242
mov edi, eax
test edi, edi
jns 0x45bdb0
mov eax, dword [0x46a020]
cmp eax, 0x46a020
je 0x45be5b
test byte [eax + 0x1c], 8
je 0x45be5b
cmp byte [eax + 0x19], 2
jb 0x45be5b
push edi
push 0x40a3e8
call fcn.00411040
push eax
mov eax, dword [0x46a020]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
jmp 0x45bd54
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
xor eax, eax
push eax
push eax
push ebx
push 0x45cceb
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x494], eax
test eax, eax
jne 0x45be34
mov eax, dword [ebx + 0x20]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x46a020]
cmp eax, 0x46a020
je 0x45be1c
test byte [eax + 0x1c], 8
je 0x45be1c
cmp byte [eax + 0x19], 2
jb 0x45be1c
push edi
push ecx
call fcn.00411040
pop ecx
push eax
mov eax, dword [0x46a020]
mov edx, 0x40ab90
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xd
pop ecx
call fcn.00412c68
test edi, edi
jle 0x45be2b
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x45bea3
mov edi, 0x80004005
jmp 0x45bea3
mov eax, dword [ebx + 0x98]
test eax, eax
je 0x45be45
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x494]
xor esi, esi
mov dword [ebx + 0x98], eax
mov eax, dword [ebp - 0x4a4]
mov dword [eax], ebx
test edi, edi
jns 0x45bf34
jmp 0x45bea3
mov eax, dword [0x46a020]
mov edi, 0x8007000e
cmp eax, 0x46a020
je 0x45bea3
test byte [eax + 0x1c], 8
je 0x45bea3
cmp byte [eax + 0x19], 2
jb 0x45bea3
push edi
push ecx
call fcn.00411040
pop ecx
push eax
mov eax, dword [0x46a020]
mov edx, 0x40ab90
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.00412c68
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x8c]
push 0x40
push eax
push 0x34bc
push dword [ebp - 0x498]
call ebx
xor ecx, ecx
lea eax, [ebp - 0x490]
push ecx
push ecx
push eax
push ecx
mov ecx, edi
call fcn.0045b9e6
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x45befd
push 0x200
lea eax, [ebp - 0x48c]
push eax
push 0x34bd
push dword [ebp - 0x498]
call ebx
mov eax, dword [ebp - 0x490]
test eax, eax
jne 0x45bf0d
lea eax, [ebp - 0x48c]
push 0x10
lea ecx, [ebp - 0x8c]
push ecx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x490], 0
je 0x45bf34
push dword [ebp - 0x490]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x45bf3e
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468719
mov esp, ebp
pop ebp
ret 0x1c