Function at 0x405b6d
Capabilities:
Create thread

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4d44e4]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0xdc
mov eax, 0x499bdc
call fcn.0044df9b
mov esi, ecx
mov edi, 0x49da34
lea ecx, [esi + 0x660]
push edi
call fcn.004023ba
lea ecx, [esi + 0x67c]
push edi
call fcn.004023ba
lea ecx, [esi + 0x698]
push edi
call fcn.004023ba
and dword [ebp - 0x10], 0
mov ebx, 0x206
and word [ebp + 0x208], 0
push ebx
lea eax, [ebp + 0x20a]
push 0
push eax
call fcn.0044e570
and word [ebp], 0
push ebx
lea eax, [ebp + 2]
push 0
push eax
call fcn.0044e570
push dword [ebp - 0x10]
lea eax, [ebp + 0x208]
push 0x49e35c
push eax
call fcn.0044e757
push dword [ebp - 0x10]
lea eax, [ebp]
push 0x49e32c
push eax
call fcn.0044e757
mov ecx, dword [esi + 0x50c]
add esp, 0x30
lea eax, [ebp]
push eax
call dword [0x4b23e4]
test eax, eax
je 0x405c78
mov ecx, eax
call dword [0x4b241c]
test al, al
je 0x405c78
push edi
lea ecx, [esi + 0x660]
call fcn.0040522d
test eax, eax
lea ecx, [esi + 0x660]
jne 0x405c5c
lea eax, [ebp + 0x208]
push eax
call fcn.004023ba
jmp 0x405c78
push 0x49e328
call fcn.0040239d
lea eax, [ebp + 0x208]
push eax
lea ecx, [esi + 0x660]
call fcn.0040239d
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x64
jl 0x405bc8
mov ecx, dword [esi + 0x65c]
test ecx, ecx
mov ebx, 0x1f4
je 0x405d81
mov eax, dword [ecx]
lea edx, [ebp - 0xe8]
push edx
call dword [eax + 0x28]
and dword [ebp - 4], 0
mov ecx, eax
call dword [0x4b23f0]
push eax
lea ecx, [esi + 0x67c]
call fcn.004023ba
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call dword [0x4b23ec]
push 0x49e184
lea ecx, [esi + 0x67c]
call fcn.0040522d
test eax, eax
jne 0x405cec
push edi
lea ecx, [esi + 0x67c]
call fcn.004023ba
push edi
lea ecx, [ebp - 0x2c]
call fcn.00402423
push 0x49e324
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 1
call fcn.00402423
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [esi + 0x67c]
push eax
mov byte [ebp - 4], 2
call fcn.0040feef
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00401eb7
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401eb7
cmp dword [esi + 0x690], ebx
jbe 0x405d81
push ebx
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x67c]
call fcn.0040543d
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x67c]
mov dword [ebp - 4], 3
call fcn.004021f7
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401eb7
mov ecx, dword [esi + 0x658]
test ecx, ecx
je 0x405e6e
mov eax, dword [ecx]
lea edx, [ebp - 0xe8]
push edx
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], 4
call dword [0x4b23f0]
push eax
lea ecx, [esi + 0x698]
call fcn.004023ba
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call dword [0x4b23ec]
push 0x49e164
lea ecx, [esi + 0x698]
call fcn.0040522d
test eax, eax
jne 0x405de6
push edi
lea ecx, [esi + 0x698]
call fcn.004023ba
push edi
lea ecx, [ebp - 0x48]
call fcn.00402423
push 0x49e324
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 5
call fcn.00402423
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
lea edi, [esi + 0x698]
push edi
mov byte [ebp - 4], 6
call fcn.0040feef
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401eb7
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00401eb7
cmp dword [esi + 0x6ac], ebx
jbe 0x405e6e
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x64]
push eax
mov ecx, edi
call fcn.0040543d
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov dword [ebp - 4], 7
call fcn.004021f7
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00401eb7
lea eax, [esi + 0x6b8]
push eax
xor eax, eax
push eax
push esi
push 0x405b5f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x6b4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0044df8c
add ebp, 0x414
leave
ret