Function at 0x408820
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x410eb7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x2c]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esi + 0x230], edi
mov dword [esi + 0x10], edi
mov dword [esi + 4], edi
mov dword [esi], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x224], edi
mov dword [esi + 0x228], edi
mov dword [esi + 0x22c], edi
mov dword [esi + 0x220], edi
mov dword [esi + 0x21c], eax
call fcn.00407cf0
test al, 3
mov dword [esp + 0x38], eax
jne 0x40889b
mov ecx, dword [esi + 0x21c]
push 0x4138e0
push ecx
call fcn.004070d0
add esp, 8
jmp 0x408b69
mov edx, dword [esp + 0x34]
lea eax, [esi + 0x23c]
push ebp
push eax
push edi
mov dword [esi + 0x238], edx
call fcn.00407e90
lea ecx, [esi + 0x254]
push ecx
push 1
call fcn.00407e90
mov ebx, dword [0x4110d4]
mov ebp, dword [0x411084]
add esp, 0x10
mov dword [esp + 0x10], 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call ebx
test eax, eax
jne 0x4088f7
push 1
call ebp
inc edi
cmp edi, 0x3e8
jl 0x4088d8
jmp 0x408906
lea ecx, [esp + 0x18]
lea edx, [esi + 0x14]
push ecx
push edx
call dword [0x411068]
mov edi, dword [0x4110e0]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x224], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x228], eax
call edi
mov edi, dword [0x4110dc]
push ebx
push ebx
push ebx
mov dword [esi + 0x22c], eax
call edi
push ebx
push ebx
push ebx
mov dword [esi + 8], eax
call edi
push 0x20
mov dword [esi + 0xc], eax
call fcn.0040b4dc
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebx
mov dword [esp + 0x30], ebx
je 0x408967
mov ecx, eax
call fcn.00403f10
jmp 0x408969
xor eax, eax
or ebp, 0xffffffff
push 0x20
mov dword [esp + 0x34], ebp
mov dword [esi], eax
call fcn.0040b4dc
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebx
mov dword [esp + 0x30], 1
je 0x408995
mov ecx, eax
call fcn.00403f10
jmp 0x408997
xor eax, eax
mov dword [esi + 4], eax
mov eax, dword [0x414b9c]
cmp eax, ebx
mov dword [esp + 0x30], ebp
jne 0x408a52
push 0x20
call fcn.0040b4dc
mov edi, eax
add esp, 4
mov dword [esp + 0x38], edi
cmp edi, ebx
mov dword [esp + 0x30], 2
je 0x4089d0
mov ecx, edi
call fcn.00403f10
jmp 0x4089d2
xor edi, edi
mov al, byte [esp + 0x3c]
mov dword [esp + 0x30], ebp
test al, 2
mov dword [0x414ba4], edi
je 0x408a52
push 0x178
call fcn.0040b4dc
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebx
mov dword [esp + 0x30], 3
je 0x408a1c
mov ecx, dword [esi + 0x21c]
mov edx, dword [0x414ba4]
push ecx
lea ecx, [esi + 0x14]
push edx
push ecx
mov ecx, eax
call fcn.0040a590
jmp 0x408a1e
xor eax, eax
mov ecx, eax
mov dword [esp + 0x30], ebp
mov dword [0x414ba0], eax
call fcn.0040aa80
test eax, eax
jne 0x408a52
mov ecx, dword [0x414ba0]
cmp ecx, ebx
mov edi, ecx
je 0x408a4c
call fcn.0040a7e0
push edi
call fcn.0040b398
add esp, 4
mov dword [0x414ba0], ebx
mov ecx, dword [0x414b9c]
mov al, byte [esp + 0x3c]
inc ecx
test al, 1
mov dword [0x414b9c], ecx
je 0x408b08
cmp dword [esi + 0x238], 2
jne 0x408a80
mov ebp, 0x4114f4
mov edi, 0x4114e0
jmp 0x408a8a
mov ebp, 0x4114e0
mov edi, 0x4114f4
lea edx, [esi + 0x118]
push edi
push edx
call dword [0x411068]
push 0x260
call fcn.0040b4dc
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov dword [esp + 0x30], 4
je 0x408ad9
mov ecx, dword [esi + 0x21c]
mov edx, dword [0x414ba4]
push ecx
mov ecx, dword [esi + 0x238]
push edx
push ecx
push edi
lea edx, [esi + 0x14]
push ebp
push edx
mov ecx, eax
call fcn.00404750
jmp 0x408adb
xor eax, eax
mov ecx, eax
mov dword [esp + 0x30], 0xffffffff
mov dword [esi + 0x10], eax
call fcn.00404a40
test eax, eax
jne 0x408b0b
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x408b08
mov ecx, edi
call fcn.004049b0
push edi
call fcn.0040b398
add esp, 4
mov dword [esi + 0x10], ebx
mov eax, dword [0x414ba0]
pop ebp
cmp eax, ebx
jne 0x408b30
cmp dword [esi + 0x10], ebx
jne 0x408b30
mov eax, dword [esi + 0x21c]
push 0x4138bc
push eax
call fcn.004070d0
add esp, 8
jmp 0x408b69
lea ecx, [esp + 0x10]
mov edi, 1
push ecx
push 4
push esi
push 0x408fd0
push ebx
push ebx
mov dword [esi + 0x234], edi
mov dword [esp + 0x28], ebx
call fcn.0040b3a3
add esp, 0x18
mov dword [esi + 0x220], eax
push eax
call dword [0x4110e4]
mov dword [esi + 0x230], edi
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8