Function at 0x402d85
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.0041411d
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0041411d
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
push 0x10
call fcn.0041411d
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
cmp dword [ebp + 0xc], 0
mov eax, 0
sete al
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jne 0x402e44
call fcn.0040265a
mov dword [ebp + 8], eax
push 0
mov ebx, 0x416330
call fcn.00414135
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 3
je 0x402e6d
mov eax, 0
jmp 0x402fcc
mov dword [ebp - 0x20], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
mov eax, 3
call fcn.0041412f
cmp dword [ebp - 0x20], esp
je 0x402e99
push 6
call fcn.00414129
add esp, 4
mov dword [ebp - 4], eax
mov eax, 0x4f748d
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402eb2
push ebx
call fcn.00414123
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xc]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 7
call fcn.0041412f
cmp dword [ebp - 0x20], esp
je 0x402ee1
push 6
call fcn.00414129
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x4f72d3
mov eax, 8
call fcn.0041412f
cmp dword [ebp - 0x20], esp
je 0x402f0b
push 6
call fcn.00414129
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 2
mov dword [ebp - 0x20], esp
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push 0x1c
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 9
call fcn.0041412f
cmp dword [ebp - 0x20], esp
je 0x402f9f
push 6
call fcn.00414129
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
mov eax, 6
call fcn.0041412f
cmp dword [ebp - 0x20], esp
je 0x402fc4
push 6
call fcn.00414129
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x402fcc
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402fdd
push ebx
call fcn.00414123
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00414123
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00414123
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.00414123
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8