Function at 0x46207f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fee8a
mov eax, dword fs:[0]
push eax
sub esp, 0x3c0
mov eax, dword [0x5415b0]
xor eax, esp
mov dword [esp + 0x3b8], eax
push ebx
push esi
push edi
mov eax, dword [0x5415b0]
xor eax, esp
push eax
lea eax, [esp + 0x3d0]
mov dword fs:[0], eax
mov edi, ecx
xor edx, edx
xor ebx, ebx
inc edx
mov dword [esp + 0x30], ebx
cmp dword [ebp + 0xc], 0x320
mov esi, ebx
jle 0x4620e0
cmp dword [ebp + 0x10], 0x243
mov ecx, edx
jg 0x4620e2
mov ecx, ebx
cmp dword [ebp + 0xc], 0x1a4
jle 0x4620f6
cmp dword [ebp + 0x10], 0x172
mov eax, edx
jg 0x4620f8
mov eax, ebx
test ecx, ecx
je 0x462108
push ecx
mov ecx, edi
mov esi, edx
call fcn.0045fb36
jmp 0x462116
test eax, eax
jne 0x462114
cmp dword [edi + 0x124], ebx
je 0x462116
mov esi, edx
lea ecx, [esp + 0x18]
call fcn.00460325
mov dword [esp + 0x3d8], ebx
xor ebx, ebx
push dword [eax]
inc ebx
push dword [edi + 0xfc]
mov dword [esp + 0x38], ebx
call fcn.004d6cd4
pop ecx
pop ecx
test eax, eax
je 0x462164
lea ecx, [esp + 0x2c]
call fcn.0046036c
push 3
pop ebx
push dword [eax]
push dword [edi + 0xfc]
call fcn.004d6cd4
mov byte [esp + 0x1f], 1
pop ecx
pop ecx
test eax, eax
jne 0x462169
mov byte [esp + 0x17], 0
test bl, 2
je 0x46217a
lea ecx, [esp + 0x2c]
and ebx, 0xfffffffd
call fcn.00403030
or dword [esp + 0x3d8], 0xffffffff
test bl, 1
je 0x462190
lea ecx, [esp + 0x18]
call fcn.00403030
cmp byte [esp + 0x17], 0
lea ebx, [edi + 0xfc]
je 0x4621b2
mov edx, dword [edi + 0xf8]
mov ecx, dword [ebx]
push esi
mov dword [edi + 0x120], esi
call fcn.0046c3b9
pop ecx
cmp dword [edi + 0x170], 0
push 1
pop eax
cmovne esi, eax
test esi, esi
je 0x4622dd
push 5
push eax
lea eax, [esp + 0x3a8]
push eax
call fcn.004b2a61
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
jle 0x462235
lea ecx, [esp + 0x34]
call fcn.00410dfe
xor eax, eax
inc eax
mov dword [esp + 0x3d8], eax
lea eax, [esp + 0x34]
push eax
push dword [esp + esi*4 + 0x3a4]
call fcn.004b0b0e
test eax, eax
je 0x46221d
push dword [ebx]
push dword [esp + 0xb0]
call fcn.004d6cd4
pop ecx
pop ecx
test eax, eax
je 0x462298
or dword [esp + 0x3d8], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.0041057c
inc esi
cmp esi, dword [esp + 0x18]
jl 0x4621e1
mov eax, dword [0x542750]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x3d8], 2
lea ecx, [esp + 0x24]
mov eax, dword [edi + 4]
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x4e9
call fcn.00402a9f
lea eax, [edi + 0xf8]
push eax
lea ecx, [esp + 0x2c]
call fcn.00402a9f
push 0x10
call fcn.004d6a5a
mov esi, eax
pop ecx
test esi, esi
je 0x4622ab
mov ecx, dword [0x542750]
mov dword [esi + 8], ecx
mov ecx, dword [0x542750]
mov dword [esi + 0xc], ecx
jmp 0x4622ad
or dword [esp + 0x3d8], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.0041057c
jmp 0x4622dd
xor esi, esi
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00442a32
xor eax, eax
push eax
push eax
push esi
push 0x4427e5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0x28]
call fcn.00403030
lea ecx, [esp + 0x24]
call fcn.00403030
xor eax, eax
mov ecx, dword [esp + 0x3d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b8]
xor ecx, esp
call fcn.004d5e2a
mov esp, ebp
pop ebp
ret 0x10