Function at 0x4a4225
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x500144]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x49c], eax
xor esi, esi
mov eax, dword [ebp + 0x18]
mov ebx, edx
push edi
mov dword [ebp - 0x498], eax
mov eax, dword [ebp + 0x20]
push 0x400
mov dword [ebp - 0x4a4], eax
lea eax, [ebp - 0x48c]
push esi
push eax
mov dword [ebp - 0x4a8], ebx
mov dword [ebp - 0x4a0], ecx
mov dword [ebp - 0x490], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x8c]
push 0x80
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x494], esi
push 0x9c
call fcn.004fb25b
pop ecx
test eax, eax
je 0x4a4469
mov ecx, eax
call fcn.004a4062
mov esi, eax
test esi, esi
je 0x4a4469
mov eax, dword [esi]
push esi
mov dword [ebp - 0x490], esi
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x5035f0]
call edi
push dword [ebp + 0x14]
mov eax, dword [esi + 0x24]
push dword [ebp + 0x1c]
mov esi, dword [ebp - 0x490]
mov ecx, esi
push dword [ebp - 0x498]
push dword [ebp - 0x49c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push dword [ebp - 0x4a0]
call fcn.004a4555
mov ebx, eax
test ebx, ebx
jns 0x4a435a
mov eax, dword [section..data]
cmp eax, section..data
je 0x4a44a5
test byte [eax + 0x1c], 8
je 0x4a44a5
cmp byte [eax + 0x19], 2
jb 0x4a44a5
call fcn.0042386b
push ebx
push 0x417654
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
mov edx, 0x417cf0
pop ecx
call fcn.0042371b
jmp 0x4a44a5
mov ecx, esi
call fcn.004a5669
mov ebx, eax
test ebx, ebx
jns 0x4a43a6
mov eax, dword [section..data]
cmp eax, section..data
je 0x4a44a5
test byte [eax + 0x1c], 8
je 0x4a44a5
cmp byte [eax + 0x19], 2
jb 0x4a44a5
call fcn.0042386b
push ebx
push 0x417678
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
jmp 0x4a434a
mov eax, dword [esi]
push esi
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x5035f0]
call edi
xor eax, eax
push eax
push eax
push esi
push 0x4a5100
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4a443e
mov eax, dword [esi + 0x24]
mov eax, dword [ebp - 0x490]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5035f0]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x4a4426
test byte [eax + 0x1c], 8
je 0x4a4426
cmp byte [eax + 0x19], 2
jb 0x4a4426
call fcn.0042386b
push ebx
push eax
mov eax, dword [section..data]
mov edx, 0x417cf0
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xd
pop ecx
call fcn.00421fda
test ebx, ebx
jle 0x4a4435
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x4a44a5
mov ebx, 0x80004005
jmp 0x4a44a5
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x4a444f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4a4]
and dword [ebp - 0x490], 0
mov dword [esi + 0x8c], edi
mov dword [eax], esi
jmp 0x4a4531
mov eax, dword [section..data]
mov ebx, 0x8007000e
cmp eax, section..data
je 0x4a44a5
test byte [eax + 0x1c], 8
je 0x4a44a5
cmp byte [eax + 0x19], 2
jb 0x4a44a5
call fcn.0042386b
push ebx
push eax
mov eax, dword [section..data]
mov edx, 0x417cf0
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.00421fda
mov esi, dword [ebp - 0x4a8]
lea eax, [ebp - 0x8c]
push 0x40
push eax
push 0x34bc
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
xor edi, edi
lea eax, [ebp - 0x494]
push edi
push edi
push eax
push edi
mov ecx, ebx
call fcn.004a4003
push eax
push edi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x4a44fc
push 0x200
lea eax, [ebp - 0x48c]
push eax
push 0x34bd
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp - 0x494]
test eax, eax
jne 0x4a450c
lea eax, [ebp - 0x48c]
push 0x10
lea ecx, [ebp - 0x8c]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x494], edi
je 0x4a4531
push dword [ebp - 0x494]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x490]
call fcn.004262d0
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fb5e0
leave
ret 0x1c