Function at 0x4018d0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x29c
mov eax, dword [0x42d0a4]
xor eax, esp
mov dword [esp + 0x294], eax
push ebx
push ebp
push esi
push edi
mov ecx, 0x42e4d0
xor ebx, ebx
xor ebp, ebp
call fcn.004084e0
test eax, eax
je 0x401af1
mov eax, dword [0x42eedc]
cmp eax, 6
je 0x401960
cmp eax, 7
je 0x401960
mov edx, eax
mov dword [0x42e4c0], edx
xor eax, eax
jmp 0x401920
movzx ecx, word [eax + 0x42eee4]
mov word [eax + 0x4501d0], cx
add eax, 2
cmp cx, bx
jne 0x401920
xor eax, eax
jmp 0x401940
movzx ecx, word [eax + 0x42ef68]
mov word [eax + 0x450250], cx
add eax, 2
cmp cx, bx
jne 0x401940
mov ebp, 1
jmp 0x401b00
mov eax, dword [0x428aac]
mov ecx, dword [0x428ab0]
mov edx, dword [0x428ab4]
mov dword [esp + 0x20], eax
movzx eax, word [0x428ab8]
push 0x72
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x32]
push ebx
push ecx
mov dword [esp + 0x34], edx
mov word [esp + 0x38], ax
call fcn.00414720
mov edx, dword [0x428abc]
mov eax, dword [0x428ac0]
mov ecx, dword [0x428ac4]
add esp, 0xc
push 0x72
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa4], edx
mov dx, word [0x428ac8]
lea eax, [esp + 0xb2]
push ebx
push eax
mov dword [esp + 0xb4], ecx
mov word [esp + 0xb8], dx
call fcn.00414720
mov ecx, dword [0x428acc]
mov edx, dword [0x428ad0]
mov eax, dword [0x428ad4]
add esp, 0xc
push 0x72
mov dword [esp + 0x128], edx
mov dword [esp + 0x124], ecx
mov cx, word [0x428ad8]
lea edx, [esp + 0x132]
push ebx
push edx
mov dword [esp + 0x134], eax
mov word [esp + 0x138], cx
call fcn.00414720
mov ecx, dword [0x428ae0]
mov eax, dword [0x428adc]
mov edx, dword [0x428ae4]
add esp, 0xc
push 0x70
mov dword [esp + 0x1a8], ecx
mov dword [esp + 0x1a4], eax
mov eax, dword [0x428ae8]
lea ecx, [esp + 0x1b4]
push ebx
push ecx
mov dword [esp + 0x1b4], edx
mov dword [esp + 0x1b8], eax
call fcn.00414720
mov eax, dword [0x428af0]
mov ecx, dword [0x428af4]
mov edx, dword [0x428aec]
add esp, 0xc
mov dword [esp + 0x224], eax
movzx eax, word [0x428afc]
push 0x6e
mov dword [esp + 0x22c], ecx
mov dword [esp + 0x224], edx
mov edx, dword [0x428af8]
lea ecx, [esp + 0x236]
push ebx
push ecx
mov dword [esp + 0x238], edx
mov word [esp + 0x23c], ax
call fcn.00414720
add esp, 0xc
xor esi, esi
lea edi, [esp + 0x20]
lea esp, [esp]
push edi
mov ecx, 0x42e4d0
call fcn.00408600
test eax, eax
jne 0x401c6e
add esi, 1
add edi, 0x80
cmp esi, 5
jl 0x401ad0
or edx, 0xffffffff
mov dword [0x42e4c0], edx
mov dword [0x450360], ebx
cmp dword [0x4501c8], 3
jne 0x401ccc
cmp edx, 5
ja 0x401cc6
cmp dword [0x450360], ebx
jne 0x401ccc
push 0x206
lea eax, [esp + 0x26]
push ebx
push eax
mov dword [esp + 0x24], ebx
xor edi, edi
mov word [esp + 0x2c], bx
call fcn.00414720
add esp, 0xc
lea esi, [esp + 0x20]
call fcn.00402af0
mov eax, esi
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x401b50
mov ecx, dword [0x428b00]
mov edx, dword [0x428b04]
mov dword [eax], ecx
mov ecx, dword [0x428b08]
mov dword [eax + 4], edx
mov edx, dword [0x428b0c]
mov dword [eax + 8], ecx
mov ecx, dword [0x428b10]
mov dword [eax + 0xc], edx
mov edx, dword [0x428b14]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [esp + 0x20]
push eax
call dword [0x425134]
cmp eax, 0xffffffff
jne 0x401bdc
lea ecx, [esp + 0x18]
push ecx
call fcn.00402b50
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x401ccc
mov eax, dword [esp + 0x18]
cmp eax, 0xa
jl 0x401ccc
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.004041a0
add esp, 4
test eax, eax
jne 0x401ccc
call dword [0x42512c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00401000
test eax, eax
je 0x401ccc
cmp edi, ebx
je 0x401c02
push edi
call fcn.004122b9
add esp, 4
lea ecx, [esp + 0x14]
push ecx
push 0x28
mov dword [esp + 0x1c], ebx
call dword [fcn.00425128]
push eax
call dword [0x425008]
test eax, eax
je 0x401c40
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x428b30
push ebx
call dword [0x425004]
test eax, eax
je 0x401c40
lea esi, [esp + 0x18]
call fcn.004089d0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x401c4f
push eax
call dword [0x425124]
mov ecx, dword [0x42eee0]
lea eax, [esp + 0x20]
call fcn.00408870
test eax, eax
jne 0x401ccc
mov eax, dword [0x42eee0]
mov dword [0x450360], eax
jmp 0x401ccc
mov edx, esi
shl edx, 7
lea eax, [esp + edx + 0x20]
mov edx, 0x450250
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x401c80
mov edx, 6
mov dword [0x42e4c0], edx
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x42eee4]
mov word [eax + 0x4501d0], cx
add eax, 2
cmp cx, bx
jne 0x401ca0
mov dword [0x42e4c4], esi
mov ebp, 1
jmp 0x401b00
mov dword [0x450360], ebx
mov ecx, dword [esp + 0x2a4]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.004122be
add esp, 0x29c
ret