Function at 0x401000
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x410ade
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 0x34]
call fcn.00407f20
xor ebx, ebx
mov dword [esp + 0x124], ebx
call fcn.00407a40
lea eax, [esp + 0x18]
push eax
call fcn.00407d10
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esi + 0xc], eax
call fcn.00406fe0
mov edx, dword [esp + 0x138]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x13c]
push 0x26c
mov dword [esi + 4], edx
mov dword [esi], eax
call fcn.0040b4dc
add esp, 0x10
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x124], 1
je 0x401093
mov ecx, dword [esi + 8]
push ecx
push 3
mov ecx, eax
call fcn.00408820
jmp 0x401095
xor eax, eax
push edi
push 0xc
mov byte [esp + 0x12c], bl
mov dword [esi + 0x58], eax
call fcn.0040b4dc
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov byte [esp + 0x128], 2
je 0x4010d9
mov dl, byte [esp + 0xf]
push 0xc
mov byte [edi], dl
call fcn.0040b4dc
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
jmp 0x4010db
xor edi, edi
push 0xc
mov byte [esp + 0x12c], bl
mov dword [esi + 0x10], edi
call fcn.0040b4dc
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov byte [esp + 0x128], 3
je 0x40111e
mov al, byte [esp + 0xf]
push 0xc
mov byte [edi], al
call fcn.0040b4dc
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
jmp 0x401120
xor edi, edi
push ebx
mov dword [esi + 0x14], edi
mov edi, dword [0x4110dc]
push ebx
push ebx
mov byte [esp + 0x134], bl
call edi
push ebx
push ebx
push ebx
mov dword [esi + 0x18], eax
call edi
mov ecx, dword [esi + 0x18]
push 0xc
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
call fcn.0040b4dc
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x128], 4
je 0x40116c
mov ecx, eax
call fcn.00403650
jmp 0x40116e
xor eax, eax
mov edi, dword [0x4110e0]
push ebx
push ebx
push 1
push ebx
mov byte [esp + 0x138], bl
mov dword [esi + 0x28], eax
call edi
push 0x20
mov dword [esi + 0x30], eax
call fcn.0040b4dc
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x128], 5
je 0x4011ab
mov ecx, eax
call fcn.00403f10
jmp 0x4011ad
xor eax, eax
push ebx
push ebx
push ebx
push ebx
mov byte [esp + 0x138], bl
mov dword [esi + 0x3c], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x40], eax
mov dword [esi + 0x4c], 1
call edi
push 0x20
mov dword [esi + 0x54], eax
call fcn.0040b4dc
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x128], 6
je 0x4011f3
mov ecx, eax
call fcn.00403f10
jmp 0x4011f5
xor eax, eax
lea edx, [esp + 0x14]
mov byte [esp + 0x128], bl
push edx
push 4
push esi
push 0x402490
push ebx
push ebx
mov dword [esi + 0x50], eax
mov dword [esp + 0x2c], ebx
call fcn.0040b3a3
add esp, 0x18
mov dword [esi + 0x48], eax
push eax
call dword [0x4110e4]
call dword [0x4110e8]
mov edi, eax
push edi
call fcn.00407d80
add esp, 4
cmp eax, ebx
je 0x401252
mov eax, dword [esi + 8]
push edi
push 0x413094
push 0x413070
push eax
call fcn.00407010
add esp, 0x10
jmp 0x401263
mov ecx, dword [esi + 8]
push 0x413040
push ecx
call fcn.004070d0
add esp, 8
push 1
call fcn.0040b4dc
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x128], 7
pop edi
je 0x401293
mov edx, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
push edx
mov edx, dword [esi + 8]
push ecx
push edx
mov ecx, eax
call fcn.004028c0
jmp 0x401295
xor eax, eax
push 0x2c
mov byte [esp + 0x128], bl
mov dword [esi + 0x44], eax
call fcn.0040b4dc
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x124], 8
je 0x4012c9
mov ecx, dword [esi + 8]
push ecx
mov ecx, eax
call fcn.004065c0
mov dword [esi + 0x5c], eax
jmp 0x4012cc
mov dword [esi + 0x5c], ebx
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret 8