Function at 0x411710
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4fa686
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
mov al, byte [esp + 3]
push ebx
mov dl, byte [esp + 7]
push ebp
push edi
mov edi, ecx
mov cl, byte [esp + 0xf]
mov dword [esp + 0x44], edi
mov byte [edi], al
lea eax, [esp + 0xf]
mov byte [edi + 1], cl
push eax
lea ecx, [edi + 4]
mov byte [edi + 2], dl
call fcn.0048bda0
xor ebp, ebp
push 0x64
mov ecx, edi
mov dword [esp + 0x180], ebp
mov dword [edi + 0x10], ebp
call fcn.00412940
mov eax, dword [esp + 0x184]
push 0x5192f8
push eax
mov dword [esp + 0x184], 1
mov dword [edi + 0x18], ebp
mov dword [edi + 0x14], eax
call fcn.004ee0e7
mov ebx, eax
add esp, 8
cmp ebx, ebp
jne 0x41179d
push 1
call fcn.004edfc3
mov al, byte [ebx + 0xc]
push esi
test al, 0x10
jne 0x411973
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x34]
mov byte [esp + 0x180], 2
push ecx
push ebp
push ebp
mov dword [esp + 0x40], ebp
call fcn.00413c00
mov dword [esp + 0x2c], eax
push ebx
lea edx, [esp + 0x88]
push 0xff
push edx
mov byte [esp + 0x198], 3
call fcn.004edf34
add esp, 0x18
test eax, eax
je 0x411950
lea eax, [esp + 0x30]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x80]
push edx
push eax
mov ecx, edi
call fcn.00411510
test eax, eax
jne 0x411922
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x1b]
push ecx
push ebp
lea ecx, [esp + 0x40]
call fcn.004125b0
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x2c]
push edx
push ebp
push eax
mov byte [esp + 0x18c], 4
mov dword [esp + 0x38], ebp
call fcn.00413c00
add esp, 0xc
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x180], 5
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x48], esi
call fcn.00412430
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x4c]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x188], 6
mov dword [esp + 0x1c], edx
call fcn.0040b280
cmp dword [esp + 0x4c], ebp
jne 0x4118ff
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x54]
mov dword [esp + 0x14], edx
call fcn.004a5a50
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x188], 7
call fcn.00412610
push eax
mov ecx, edi
mov byte [esp + 0x184], 8
call fcn.00413540
mov esi, eax
lea ecx, [esp + 0x68]
add esi, 4
mov byte [esp + 0x180], 7
call fcn.004122e0
lea ecx, [esp + 0x54]
mov byte [esp + 0x180], 6
call fcn.004122e0
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.004119a0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
sub eax, ecx
mov byte [esp + 0x180], 3
sar eax, 1
je 0x411922
lea edx, [eax + eax]
push edx
push ecx
call fcn.0040b310
add esp, 8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
mov byte [esp + 0x180], 1
sar eax, 1
je 0x411944
add eax, eax
push eax
push ecx
call fcn.0040b310
add esp, 8
test byte [ebx + 0xc], 0x10
je 0x4117a9
jmp 0x411973
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
mov byte [esp + 0x180], 1
sar eax, 1
je 0x411973
lea edx, [eax + eax]
push edx
push ecx
call fcn.0040b310
add esp, 8
push ebx
call fcn.004edeb7
mov ecx, dword [esp + 0x17c]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x174
ret 4