Function at 0x40e7b0
Capabilities:
Check os version
Parse pe header
Query or enumerate registry value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f130d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x53ba20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
push 1
mov dword [0x53ffd4], edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [0x54000c]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40e809
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
mov esi, dword [ebp + 8]
test esi, 0x100
je 0x40e8f3
mov dword [0x53ff7c], 0x100
cmp edi, 2
je 0x40e830
cmp edi, 1
jne 0x40e8b6
push 0x4fcb54
push 0x4fcb70
push dword [0x534a0c]
push 0
call fcn.00413ec0
add esp, 0x10
cmp edi, 2
je 0x40e854
cmp edi, 1
jne 0x40e8b6
push 0x4fcbd4
push 0x4fcb70
push dword [0x534a0c]
push 0
call fcn.00413ec0
add esp, 0x10
cmp edi, 2
je 0x40e878
cmp edi, 1
jne 0x40e8b6
push 0x4fcbf0
push 0x4fcb70
push dword [0x534a0c]
push 0
call fcn.00413ec0
add esp, 0x10
cmp edi, 2
je 0x40e89c
cmp edi, 1
jne 0x40e8b6
push 0x4fcc00
push 0x4fcb70
push dword [0x534a0c]
push 0
call fcn.00413ec0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov cx, ax
shr cx, 8
cmp al, 6
jne 0x40e8f3
cmp cx, 1
jb 0x40e8f3
cmp edi, 2
je 0x40e8d7
cmp edi, 1
jne 0x40e8f3
push 0x20
push 0x4fcc24
push 0x4fcc68
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
test esi, 0x40000
je 0x40e90f
push 0
mov dword [0x53ff7c], 0x40000
call fcn.004245a0
add esp, 4
test esi, 0x80000
je 0x40f30e
mov dword [0x53ff7c], 0x80000
cmp edi, 2
je 0x40e92f
cmp edi, 1
jne 0x40e979
push 0x4fccb0
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
push dword [0x534a0c]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40e97d
test edi, edi
jne 0x40e9c2
push 0x4fccb0
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 1
push eax
push dword [0x534a10]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x40e9dc
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x40e9e6
cmp edi, 1
jne 0x40ea30
push 0x4fcd08
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 2
push eax
push dword [0x534a0c]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40ea34
test edi, edi
jne 0x40ea79
push 0x4fcd08
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 3
push eax
push dword [0x534a10]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x40ea93
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x40ea9d
cmp edi, 1
jne 0x40eae7
push 0x4fcd78
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 4
push eax
push dword [0x534a0c]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40eaeb
test edi, edi
jne 0x40eb30
push 0x4fcd78
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 5
push eax
push dword [0x534a10]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x40eb4a
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x40eb54
cmp edi, 1
jne 0x40eb9e
push 0x4fcdc8
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 6
push eax
push dword [0x534a0c]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40eba2
test edi, edi
jne 0x40ebe7
push 0x4fcdc8
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 7
push eax
push dword [0x534a10]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x40ec01
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x40ec0b
cmp edi, 1
jne 0x40ec55
push 0x4fce30
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 8
push eax
push dword [0x534a0c]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40ec59
test edi, edi
jne 0x40ec9e
push 0x4fce30
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 9
push eax
push dword [0x534a10]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x40ecb8
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x40ecc2
cmp edi, 1
jne 0x40ed0c
push 0x4fce88
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0xa
push eax
push dword [0x534a0c]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40ed10
test edi, edi
jne 0x40ed55
push 0x4fce88
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0xb
push eax
push dword [0x534a10]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x40ed6f
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x40ed79
cmp edi, 1
jne 0x40edc3
push 0x4fcef8
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0xc
push eax
push dword [0x534a0c]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40edc7
test edi, edi
jne 0x40ee0c
push 0x4fcef8
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0xd
push eax
push dword [0x534a10]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x40ee26
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x40ee30
cmp edi, 1
jne 0x40ee7a
push 0x4fcf48
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0xe
push eax
push dword [0x534a0c]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40ee7e
test edi, edi
jne 0x40eec3
push 0x4fcf48
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0xf
push eax
push dword [0x534a10]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x40eedd
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x40eee7
cmp edi, 1
jne 0x40ef31
push 0x4fcfb0
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x10
push eax
push dword [0x534a0c]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40ef35
test edi, edi
jne 0x40ef7a
push 0x4fcfb0
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x11
push eax
push dword [0x534a10]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x40ef94
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x40ef9e
cmp edi, 1
jne 0x40efe8
push 0x4fd000
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x12
push eax
push dword [0x534a0c]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40efec
test edi, edi
jne 0x40f031
push 0x4fd000
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x13
push eax
push dword [0x534a10]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x40f04b
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x40f055
cmp edi, 1
jne 0x40f09f
push 0x4fd068
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x14
push eax
push dword [0x534a0c]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40f0a3
test edi, edi
jne 0x40f0e8
push 0x4fd068
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x15
push eax
push dword [0x534a10]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x40f102
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x40f10c
cmp edi, 1
jne 0x40f156
push 0x4fd0c0
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x16
push eax
push dword [0x534a0c]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40f15a
test edi, edi
jne 0x40f19f
push 0x4fd0c0
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x17
push eax
push dword [0x534a10]
push 0
call fcn.0041d620
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x40f1b9
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x40f1c3
cmp edi, 1
jne 0x40f206
push 0x4fd130
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 0xc], esi
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x18
push eax
push dword [0x534a0c]
push 0
call fcn.0040b8e0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40f20a
test edi, edi
jne 0x40f248
push 0x4fd130
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 0xc], esi
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x19
push eax
push dword [0x534a10]
push 0
call fcn.0040b8e0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x40f262
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x40f26c
cmp edi, 1
jne 0x40f2af
push 0x4fd130
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 0xc], esi
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x1a
push eax
push dword [0x534a0c]
push 0
call fcn.0040b8e0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40f2b3
test edi, edi
jne 0x40f2f1
push 0x4fd130
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 0xc], esi
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x1b
push eax
push dword [0x534a10]
push 0
call fcn.0040b8e0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x40f30b
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
mov esi, dword [ebp + 8]
test esi, 0x200
je 0x40f5da
mov dword [0x53ff7c], 0x200
cmp edi, 2
je 0x40f32e
cmp edi, 1
jne 0x40f345
push 1
push 0x4fd188
push dword [0x534a0c]
push 0
call fcn.00419700
add esp, 0x10
mov eax, dword [0x54000c]
test eax, eax
je 0x40f35f
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x40f369
cmp edi, 1
jne 0x40f380
push 1
push 0x4fd220
push dword [0x534a0c]
push 0
call fcn.00419700
add esp, 0x10
mov eax, dword [0x54000c]
test eax, eax
je 0x40f39a
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x40f3a4
cmp edi, 1
jne 0x40f3c0
push 0x2c
push 0x4fd2cc
push 0x4fd2e0
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
mov eax, dword [0x54000c]
test eax, eax
je 0x40f3da
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x40f3e4
cmp edi, 1
jne 0x40f400
push 0x2c
push 0x4fd2cc
push 0x4fd330
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
mov eax, dword [0x54000c]
test eax, eax
je 0x40f41a
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x40f423
test edi, edi
jne 0x40f48b
push 0x2c
push 0x4fd2cc
push 0x4fd2e0
push dword [0x534a10]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x40f448
test edi, edi
jne 0x40f48b
push 0x4fd398
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 0xc], esi
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x1c
push eax
push dword [0x534a10]
push 0
call fcn.0040b8e0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40f490
cmp edi, 1
jne 0x40f4f2
push 0x4fd398
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 0xc], esi
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x1d
push eax
push dword [0x534a0c]
push 0
call fcn.0040b8e0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40f4d8
cmp edi, 1
jne 0x40f4f2
push 0x4fd3f0
push dword [0x534a0c]
push 0
call fcn.0041aaf0
add esp, 0xc
cmp edi, 2
je 0x40f4f6
test edi, edi
jne 0x40f510
push 0x4fd3f0
push dword [0x534a10]
push 0
call fcn.0041aaf0
add esp, 0xc
cmp edi, 2
je 0x40f515
cmp edi, 1
jne 0x40f52f
push 0x4fd41c
push dword [0x534a0c]
push 0
call fcn.0041aaf0
add esp, 0xc
cmp edi, 2
je 0x40f533
test edi, edi
jne 0x40f594
push 0x4fd41c
push dword [0x534a10]
push 0
call fcn.0041aaf0
add esp, 0xc
cmp edi, 2
je 0x40f551
test edi, edi
jne 0x40f594
push 0x4fd448
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 0xc], esi
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x1e
push eax
push dword [0x534a10]
push 0
call fcn.0040b8e0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40f599
cmp edi, 1
jne 0x40f5d7
push 0x4fd448
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 0xc], esi
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x1f
push eax
push dword [0x534a0c]
push 0
call fcn.0040b8e0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov esi, dword [ebp + 8]
mov eax, esi
and eax, 0x1000
mov dword [ebp - 0x18], eax
je 0x40f670
mov dword [0x53ff7c], 0x1000
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jae 0x40f64a
cmp edi, 2
je 0x40f608
cmp edi, 1
jne 0x40f670
push 0x20
push 0x4fd4a4
push 0x4fd4d8
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x40f62e
cmp edi, 1
jne 0x40f670
push 0x20
push 0x4fd544
push 0x4fd4d8
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x40f654
cmp edi, 1
jne 0x40f670
push 0x2c
push 0x4fd558
push 0x4fd568
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
test esi, 0x20000
je 0x40f6b4
mov dword [0x53ff7c], 0x20000
cmp edi, 2
je 0x40f68c
cmp edi, 1
jne 0x40f6b4
push 0x4fd584
push 0
call fcn.0042e570
add esp, 8
cmp edi, 2
je 0x40f6a5
cmp edi, 1
jne 0x40f6b4
push 0x4fd5a8
push 0
call fcn.0042e570
add esp, 8
mov eax, dword [ebp + 8]
test al, 0x20
je 0x40f6e7
mov dword [0x53ff7c], 0x20
cmp edi, 2
je 0x40f6cf
cmp edi, 1
jne 0x40f6e7
push 0x4fd5c8
push dword [0x534a0c]
push 0
call fcn.0041f290
mov eax, dword [ebp + 8]
add esp, 0xc
test al, 0x40
je 0x40f760
mov dword [0x53ff7c], 0x40
cmp edi, 2
je 0x40f6ff
cmp edi, 1
jne 0x40f760
push 0x4fd5c8
push dword [0x534a0c]
push 0
call fcn.00415390
add esp, 0xc
cmp edi, 2
je 0x40f71e
cmp edi, 1
jne 0x40f760
push 0x4fd610
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 0xc], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x20
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
cmp dword [ebp - 0x18], 0
je 0x40fa47
mov dword [0x53ff7c], 0x1000
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x40f86b
cmp edi, 2
je 0x40f790
cmp edi, 1
jne 0x40f962
push 0x4fd688
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 0xc], esi
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x21
push eax
push dword [0x534a0c]
push 0
call fcn.0040aa80
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40f7dc
cmp edi, 1
jne 0x40f962
push 0x4fd728
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 0xc], esi
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x22
push eax
push dword [0x534a0c]
push 0
call fcn.0040aa80
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40f828
cmp edi, 1
jne 0x40f962
push 0x4fd7d8
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 0xc], esi
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x23
push eax
push dword [0x534a0c]
push 0
call fcn.0040aa80
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
jmp 0x40f962
cmp edi, 2
je 0x40f879
cmp edi, 1
jne 0x40f98d
push 0x2c
push 0x4fd868
push 0x4fd4d8
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x40f8a3
cmp edi, 1
jne 0x40f98d
push 0x2c
push 0x4fd878
push 0x4fd4d8
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x40f8cd
cmp edi, 1
jne 0x40f98d
push 0x2c
push 0x4fc9dc
push 0x4fd4d8
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x40f8f7
cmp edi, 1
jne 0x40f98d
push 0x4fd888
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x24
push eax
push dword [0x534a0c]
push 0
call fcn.0042a350
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x40f946
cmp edi, 1
jne 0x40f98d
push 0x20
push 0x4fd904
push 0x4fd4d8
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x40f96c
cmp edi, 1
jne 0x40f98d
push 0x20
push 0x4fd920
push 0x4fd4d8
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x40f991
test edi, edi
jne 0x40f9d7
push 0x2c
push 0x4fd930
push 0x4fd950
push dword [0x534a10]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x40f9b6
test edi, edi
jne 0x40f9d7
push 0x2c
push 0x4fd930
push 0x4fd9c4
push dword [0x534a10]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x40f9dc
cmp edi, 1
jne 0x40fa47
push 0x2c
push 0x4fd9f0
push 0x4fda08
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x40fa02
cmp edi, 1
jne 0x40fa47
push 0x4fda80
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x25
push eax
push dword [0x534a0c]
push 0
call fcn.0042a350
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
test dword [ebp + 8], 0x4000
je 0x40fb04
mov dword [0x53ff7c], 0x4000
cmp edi, 2
je 0x40fa6c
cmp edi, 1
jne 0x40fb04
push 0x4fdb08
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
push 1
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x26
push eax
push dword [0x534a0c]
push 0
call fcn.0041e480
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
cmp edi, 2
je 0x40fabd
cmp edi, 1
jne 0x40fb04
push 0x4fdb68
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
push 1
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x27
push eax
push dword [0x534a0c]
push 0
call fcn.0041e480
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
mov esi, dword [ebp + 8]
test esi, 0x8000
je 0x40fbdb
mov dword [0x53ff7c], 0x8000
cmp edi, 2
je 0x40fb2b
cmp edi, 1
jne 0x40fbdb
push 0x2c
push 0x4fdbcc
push 0x4fdbf0
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x40fb55
cmp edi, 1
jne 0x40fbdb
push 0x4fdc58
push 0x4fdc88
push dword [0x534a0c]
push 0
call fcn.0041bed0
add esp, 0x10
cmp edi, 2
je 0x40fb79
cmp edi, 1
jne 0x40fbdb
push 0x4fdcd4
push 0x4fdc88
push dword [0x534a0c]
push 0
call fcn.0041bed0
add esp, 0x10
cmp edi, 2
je 0x40fb9d
cmp edi, 1
jne 0x40fbdb
push 0x4fdd00
push 0x4fdc88
push dword [0x534a0c]
push 0
call fcn.0041bed0
add esp, 0x10
cmp edi, 2
je 0x40fbc1
cmp edi, 1
jne 0x40fbdb
push 0x4fdd00
push 0x4fdd28
push dword [0x534a0c]
push 0
call fcn.0041bed0
add esp, 0x10
test esi, 0x10000
je 0x40fc3c
mov dword [0x53ff7c], 0x10000
cmp edi, 2
je 0x40fbf7
cmp edi, 1
jne 0x40fc3c
push 0x4fdd88
mov dword [ebp + 0xc], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0xc], eax
call fcn.004c8c7f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x28
push eax
push dword [0x534a0c]
push 0
call fcn.0041ca30
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
test esi, 0x2000
je 0x40fd29
mov dword [0x53ff7c], 0x10000
cmp edi, 2
je 0x40fc60
cmp edi, 1
jne 0x40fd26
push ecx
mov esi, esp
push 0x4fddf8
mov dword [esi], 0
call fcn.004c8c20
push 0
mov dword [esi], eax
call fcn.004c8c7f
add esp, 8
push 0
call fcn.0042b850
add esp, 8
cmp edi, 2
je 0x40fc97
cmp edi, 1
jne 0x40fd26
push ecx
mov esi, esp
push 0x4fdea8
mov dword [esi], 0
call fcn.004c8c20
push 0
mov dword [esi], eax
call fcn.004c8c7f
add esp, 8
push 0
call fcn.0042ad10
add esp, 8
cmp edi, 2
je 0x40fcca
cmp edi, 1
jne 0x40fd26
push ecx
mov esi, esp
push 0x4fdf60
mov dword [esi], 0
call fcn.004c8c20
push 0
mov dword [esi], eax
call fcn.004c8c7f
add esp, 8
push 0
call fcn.0042b850
add esp, 8
cmp edi, 2
je 0x40fcfd
cmp edi, 1
jne 0x40fd26
push ecx
mov esi, esp
push 0x4fe018
mov dword [esi], 0
call fcn.004c8c20
push 0
mov dword [esi], eax
call fcn.004c8c7f
add esp, 8
push 0
call fcn.0042ad10
add esp, 8
mov esi, dword [ebp + 8]
and esi, 2
mov dword [ebp + 0xc], esi
je 0x410297
mov dword [0x53ff7c], 2
cmp edi, 2
je 0x40fd49
cmp edi, 1
jne 0x40fd8b
push 0x2c
push 0x4fe0d0
push 0x4fe0f0
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x40fd6f
cmp edi, 1
jne 0x40fd8b
push 0x2c
push 0x4fe168
push 0x4fd4d8
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
mov dword [0x53ff7c], 2
cmp edi, 2
je 0x40fd9f
cmp edi, 1
jne 0x40fdeb
push 0x4fe180
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x29
push eax
push dword [0x534a0c]
push 0
call fcn.00415cc0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
cmp edi, 2
je 0x40fdef
test edi, edi
jne 0x40fe3b
push 0x4fe1f8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x2a
push eax
push dword [0x534a10]
push 0
call fcn.00415cc0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
cmp edi, 2
je 0x40fe40
cmp edi, 1
jne 0x40fe8c
push 0x4fe1f8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x2b
push eax
push dword [0x534a0c]
push 0
call fcn.00415cc0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
cmp edi, 2
je 0x40fe90
test edi, edi
jne 0x40fed6
push 0x2c
push 0x4fe26c
push 0x4fc450
push dword [0x534a10]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x40feb5
test edi, edi
jne 0x40fed6
push 0x2c
push 0x4fe26c
push 0x4fc450
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x40fedf
cmp edi, 1
jne 0x40ff77
push 0x2c
push 0x4fe29c
push 0x4fd4d8
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x40ff05
cmp edi, 1
jne 0x40ff77
push 0
push 0x4fe2b0
push 0x4fd4d8
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x40ff2b
cmp edi, 1
jne 0x40ff77
push 0x4fe2c8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x2c
push eax
push dword [0x534a0c]
push 0
call fcn.00415cc0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
cmp edi, 2
je 0x40ff7b
test edi, edi
jne 0x40ffc7
push 0x4fe340
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x2d
push eax
push dword [0x534a10]
push 0
call fcn.00415cc0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
cmp edi, 2
je 0x40ffcc
cmp edi, 1
jne 0x410018
push 0x4fe340
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x2e
push eax
push dword [0x534a0c]
push 0
call fcn.00415cc0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
cmp edi, 2
je 0x41001c
test edi, edi
jne 0x410068
push 0x4fe3b8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x2f
push eax
push dword [0x534a10]
push 0
call fcn.00415cc0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
cmp edi, 2
je 0x41006d
cmp edi, 1
jne 0x4100b9
push 0x4fe3b8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x30
push eax
push dword [0x534a0c]
push 0
call fcn.00415cc0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
cmp edi, 2
je 0x4100bd
test edi, edi
jne 0x410109
push 0x4fe448
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x31
push eax
push dword [0x534a10]
push 0
call fcn.00415cc0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
cmp edi, 2
je 0x41010e
cmp edi, 1
jne 0x41015a
push 0x4fe448
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x32
push eax
push dword [0x534a0c]
push 0
call fcn.00415cc0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
cmp edi, 2
je 0x41015e
test edi, edi
jne 0x4101aa
push 0x4fe4d8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x33
push eax
push dword [0x534a10]
push 0
call fcn.00415cc0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
cmp edi, 2
je 0x4101af
cmp edi, 1
jne 0x4101fb
push 0x4fe4d8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x34
push eax
push dword [0x534a0c]
push 0
call fcn.00415cc0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
cmp edi, 2
je 0x4101ff
test edi, edi
jne 0x41024b
push 0x4fe568
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x35
push eax
push dword [0x534a10]
push 0
call fcn.00415cc0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
cmp edi, 2
je 0x410250
cmp edi, 1
jne 0x410297
push 0x4fe568
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x36
push eax
push dword [0x534a0c]
push 0
call fcn.00415cc0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
test dword [ebp + 8], 0x400
je 0x4103d9
mov dword [0x53ff7c], 0x400
cmp edi, 2
je 0x4102b8
cmp edi, 1
jne 0x410302
push 0x4fe618
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 0x4fe5f8
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x37
push eax
push dword [0x534a0c]
push 0
call fcn.00403480
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
mov eax, dword [0x54000c]
test eax, eax
je 0x41031c
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x410326
cmp edi, 1
jne 0x410370
push 0x4fe688
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 0x4fe5f8
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x38
push eax
push dword [0x534a0c]
push 0
call fcn.00403480
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
mov eax, dword [0x54000c]
test eax, eax
je 0x41038a
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x410394
cmp edi, 1
jne 0x4103d9
push 0x4fe710
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x39
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
mov esi, dword [ebp + 0xc]
add esp, 0x20
test esi, esi
je 0x410b51
mov dword [0x53ff7c], 2
cmp edi, 2
je 0x4103f4
test edi, edi
jne 0x41043a
push 0x2c
push 0x4fe78c
push 0x4fe798
push dword [0x534a10]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x410419
test edi, edi
jne 0x41043a
push 0x2c
push 0x4fe78c
push 0x4fd4d8
push dword [0x534a10]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x41043f
cmp edi, 1
jne 0x4104a7
push 0x2c
push 0x4fe78c
push 0x4fe798
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x410465
cmp edi, 1
jne 0x4104a7
push 0x2c
push 0x4fe78c
push 0x4fd4d8
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x41048b
cmp edi, 1
jne 0x4104a7
push 0x20
push 0x4fd920
push 0x4fd4d8
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push 0x4fe810
push dword [0x534a0c]
call fcn.00408690
add esp, 0x14
test eax, eax
jne 0x410526
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4fe874
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41051d
cmp edi, 2
je 0x410501
cmp edi, 1
jne 0x41051d
push 0x2c
push 0x4fe898
push 0x4fe8b8
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 2
je 0x410534
cmp edi, 1
jne 0x4106d8
push 0x4fe910
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x3a
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
cmp edi, 2
je 0x410584
cmp edi, 1
jne 0x4106d8
push 0x4fe9c0
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x3b
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
cmp edi, 2
je 0x4105d4
cmp edi, 1
jne 0x4106d8
push 0x4feab0
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x3c
push eax
push dword [0x534a0c]
push 0
call fcn.00413440
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
cmp edi, 2
je 0x410624
cmp edi, 1
jne 0x4106d8
push 0x4feba8
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x3d
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
cmp edi, 2
je 0x410670
cmp edi, 1
jne 0x4106d8
push 0x2c
push 0x4fec90
push 0x4fecb0
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x410696
cmp edi, 1
jne 0x4106d8
push 0x4fed40
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x3e
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x4106f2
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x4106fc
cmp edi, 1
jne 0x41073e
push 0x4feda0
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x3f
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x410758
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x410761
test edi, edi
jne 0x4107a3
push 0x4fed40
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x40
push eax
push dword [0x534a10]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x4107bd
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x4107c6
test edi, edi
jne 0x410808
push 0x4feda0
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x41
push eax
push dword [0x534a10]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x410822
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x41082c
cmp edi, 1
jne 0x41086e
push 0x4fee18
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x42
push eax
push dword [0x534a0c]
push 0
call fcn.00413440
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x410888
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x410892
cmp edi, 1
jne 0x4108d4
push 0x4fee80
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x43
push eax
push dword [0x534a0c]
push 0
call fcn.00413440
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x4108ee
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x4108f7
test edi, edi
jne 0x410939
push 0x4fee18
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x44
push eax
push dword [0x534a10]
push 0
call fcn.00413440
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x410953
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x41095c
test edi, edi
jne 0x41099e
push 0x4fee80
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x45
push eax
push dword [0x534a10]
push 0
call fcn.00413440
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x4109b8
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x4109c2
cmp edi, 1
jne 0x410a04
push 0x4fef00
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x46
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x410a1e
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x410a28
cmp edi, 1
jne 0x410a6a
push 0x4fef68
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x47
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x410a84
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x410a8d
test edi, edi
jne 0x410acf
push 0x4fef00
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x48
push eax
push dword [0x534a10]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x410ae9
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x410af2
test edi, edi
jne 0x410b34
push 0x4fef68
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x49
push eax
push dword [0x534a10]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x410b4e
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x18], eax
je 0x410cf2
mov dword [0x53ff7c], 4
cmp edi, 2
je 0x410b73
test edi, edi
jne 0x410bbd
push 0x4fefe8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x4a
push eax
push dword [0x534a10]
push 0
call fcn.00417180
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x410bc2
cmp edi, 1
jne 0x410c0c
push 0x4fefe8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x4b
push eax
push dword [0x534a0c]
push 0
call fcn.00417180
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x410c10
test edi, edi
jne 0x410c5a
push 0x4ff030
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x4c
push eax
push dword [0x534a10]
push 0
call fcn.00417180
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x410c5f
cmp edi, 1
jne 0x410ca9
push 0x4ff030
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x4d
push eax
push dword [0x534a0c]
push 0
call fcn.00417180
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x410cad
test edi, edi
jne 0x410cf2
push 0x4ff078
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x4e
push eax
push dword [0x534a10]
push 0
call fcn.00417d70
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
test esi, esi
je 0x410f92
mov dword [0x53ff7c], 2
cmp edi, 2
je 0x410d0d
test edi, edi
jne 0x410d2c
push 0x4ff0e8
push 0x4ff100
push dword [0x534a10]
push 0
call fcn.004264e0
add esp, 0x10
cmp edi, 2
je 0x410d31
cmp edi, 1
jne 0x410d74
push 0x4ff184
push 0x4ff100
push dword [0x534a0c]
push 0
call fcn.004264e0
add esp, 0x10
cmp edi, 2
je 0x410d55
cmp edi, 1
jne 0x410d74
push 0x4ff1a8
push 0x4ff100
push dword [0x534a0c]
push 0
call fcn.004264e0
add esp, 0x10
cmp edi, 2
je 0x410d7c
test edi, edi
jne 0x410e08
push 0x4ff1c8
push 0x4ff1d8
push dword [0x534a10]
push 0
call fcn.004264e0
add esp, 0x10
cmp edi, 2
je 0x410d9f
test edi, edi
jne 0x410e08
push 0x4ff1c8
push 0x4ff268
push dword [0x534a10]
push 0
call fcn.004264e0
add esp, 0x10
cmp edi, 2
je 0x410dc2
test edi, edi
jne 0x410e08
push 0x20
push 0x4ff2ec
push 0x4ff2f8
push dword [0x534a10]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x410de7
test edi, edi
jne 0x410e08
push 0x20
push 0x4ff364
push 0x4ff2f8
push dword [0x534a10]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x410e0d
cmp edi, 1
jne 0x410e54
push 0x4ff370
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x4f
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
cmp edi, 2
je 0x410e58
test edi, edi
jne 0x410e9f
push 0x4ff370
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x50
push eax
push dword [0x534a10]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
cmp edi, 2
je 0x410ea4
cmp edi, 1
jne 0x410ee9
push 0x4ff3f0
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x51
push eax
push dword [0x534a0c]
push 0
call fcn.00402940
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x410f03
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x410f0d
cmp edi, 1
jne 0x410f52
push 0x4ff460
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x52
push eax
push dword [0x534a0c]
push 0
call fcn.00402940
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x410f6c
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x410f76
cmp edi, 1
jne 0x410f92
push 0x2c
push 0x4ff4e4
push 0x4ff2f8
push dword [0x534a0c]
push 0
call fcn.0040de60
add esp, 0x14
cmp dword [ebp - 0x18], 0
je 0x411294
mov dword [0x53ff7c], 4
cmp edi, 2
je 0x410fb0
cmp edi, 1
jne 0x410ff2
push 0x4ff508
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
push 1
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x53
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x41100c
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x411016
cmp edi, 1
jne 0x411058
push 0x4ff598
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
push 1
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x54
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x411072
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x41107c
cmp edi, 1
jne 0x4110ba
push 0x4ff640
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x55
push eax
push dword [0x534a0c]
push 0
call fcn.0040aa80
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x4110d4
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x4110de
cmp edi, 1
jne 0x41111c
push 0x4ff6d0
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x56
push eax
push dword [0x534a0c]
push 0
call fcn.0040aa80
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x411136
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x41113f
test edi, edi
jne 0x411182
push 0x4ff640
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x57
push eax
push dword [0x534a10]
push 0
call fcn.0040aa80
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x411187
cmp edi, 1
jne 0x4111c9
push 0x4ff778
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x58
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x4111e3
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x4111ed
cmp edi, 1
jne 0x41122f
push 0x4ff808
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x59
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x411249
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x411252
test edi, edi
jne 0x411294
push 0x4ff778
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x5a
push eax
push dword [0x534a10]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
cmp dword [ebp + 0xc], 0
je 0x411578
mov dword [0x53ff7c], 2
cmp edi, 2
je 0x4112b5
test edi, edi
jne 0x4113e5
push 0x4ff8b0
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x5b
push eax
push dword [0x534a10]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
cmp edi, 2
je 0x411304
test edi, edi
jne 0x4113e5
push 0x4fe9c0
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x5c
push eax
push dword [0x534a10]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
cmp edi, 2
je 0x411353
test edi, edi
jne 0x4113e5
push 0x4feab0
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x5d
push eax
push dword [0x534a10]
push 0
call fcn.00413440
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
cmp edi, 2
je 0x41139e
test edi, edi
jne 0x4113e5
push 0x4feba8
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x5e
push eax
push dword [0x534a10]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
cmp edi, 2
je 0x4113ea
cmp edi, 1
jne 0x41142c
push 0x4ff930
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x5f
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x411446
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x411450
cmp edi, 1
jne 0x411492
push 0x4ff9a8
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x60
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x4114ac
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x4114b6
cmp edi, 1
jne 0x4114f8
push 0x4ffa38
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x61
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x411512
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x41151c
cmp edi, 1
jne 0x41155e
push 0x4ffab8
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x62
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x411578
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
mov eax, dword [ebp + 8]
test al, 0x10
je 0x4115a0
mov dword [0x53ff7c], 0x10
cmp edi, 2
je 0x411593
cmp edi, 1
jne 0x4115a0
push 0
call fcn.004289d0
mov eax, dword [ebp + 8]
add esp, 4
and eax, 8
mov dword [ebp - 0x1c], eax
je 0x41167a
mov dword [0x53ff7c], 8
cmp edi, 2
je 0x4115c0
cmp edi, 1
jne 0x4115fe
push 0x4ffb50
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x63
push eax
push dword [0x534a0c]
push 0
call fcn.0040aa80
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x411618
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x411622
cmp edi, 1
jne 0x411660
push 0x4ffbe8
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x64
push eax
push dword [0x534a0c]
push 0
call fcn.0040aa80
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x41167a
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp dword [ebp - 0x18], 0
je 0x412b95
mov dword [0x53ff7c], 4
cmp edi, 2
je 0x411698
cmp edi, 1
jne 0x4116da
push 0x4ffc98
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 1
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x65
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x4116f4
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x4116fe
cmp edi, 1
jne 0x411740
push 0x4ffd28
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
push 1
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x66
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x41175a
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x411763
test edi, edi
jne 0x4117ad
push 0x4ffdd0
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x67
push eax
push dword [0x534a10]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x4117b2
cmp edi, 1
jne 0x4117f7
push 0x4ffdd0
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x68
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x411811
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x41181b
cmp edi, 1
jne 0x411860
push 0x4ffe30
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x69
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x41187a
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x411883
test edi, edi
jne 0x4118cd
push 0x4ffea8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x6a
push eax
push dword [0x534a10]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x4118d2
cmp edi, 1
jne 0x411917
push 0x4ffea8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x6b
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x411931
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x41193b
cmp edi, 1
jne 0x411980
push 0x4fff10
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x6c
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x41199a
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x4119a3
test edi, edi
jne 0x4119ed
push 0x4fff90
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x6d
push eax
push dword [0x534a10]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x4119f2
cmp edi, 1
jne 0x411a37
push 0x4fff90
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x6e
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x411a51
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x411a5b
cmp edi, 1
jne 0x411aa0
push 0x4ffff8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x6f
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x411aba
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x411ac3
test edi, edi
jne 0x411b0d
push 0x500078
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x70
push eax
push dword [0x534a10]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x411b12
cmp edi, 1
jne 0x411b57
push 0x500078
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x71
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x411b71
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x411b7b
cmp edi, 1
jne 0x411bc0
push 0x500100
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x72
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x411bda
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x411be3
test edi, edi
jne 0x411c2d
push 0x5001a0
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x73
push eax
push dword [0x534a10]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x411c32
cmp edi, 1
jne 0x411c77
push 0x5001a0
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x74
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x411c91
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x411c9b
cmp edi, 1
jne 0x411ce0
push 0x500220
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x75
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x411cfa
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x411d03
test edi, edi
jne 0x411d4d
push 0x5002b8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x76
push eax
push dword [0x534a10]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x411d52
cmp edi, 1
jne 0x411d97
push 0x5002b8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x77
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x411db1
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x411dbb
cmp edi, 1
jne 0x411e00
push 0x500340
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x78
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x411e1a
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x411e23
test edi, edi
jne 0x411e6d
push 0x5003e0
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x79
push eax
push dword [0x534a10]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x411e72
cmp edi, 1
jne 0x411eb7
push 0x5003e0
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x7a
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x411ed1
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x411edb
cmp edi, 1
jne 0x411f20
push 0x500450
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x7b
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x411f3a
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x411f43
test edi, edi
jne 0x411f8d
push 0x5004d8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x7c
push eax
push dword [0x534a10]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x411f92
cmp edi, 1
jne 0x411fd7
push 0x5004d8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x7d
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x411ff1
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x411ffb
cmp edi, 1
jne 0x412040
push 0x500540
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x7e
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x41205a
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x412063
test edi, edi
jne 0x4120ad
push 0x5005c0
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x7f
push eax
push dword [0x534a10]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x4120b2
cmp edi, 1
jne 0x4120f7
push 0x5005c0
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x80
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x412111
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x41211b
cmp edi, 1
jne 0x412160
push 0x500638
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x81
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x41217a
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x412183
test edi, edi
jne 0x4121cd
push 0x5006c8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x82
push eax
push dword [0x534a10]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x4121d2
cmp edi, 1
jne 0x412217
push 0x5006c8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x83
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x412231
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x41223b
cmp edi, 1
jne 0x412280
push 0x500730
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x84
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x41229a
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x4122a3
test edi, edi
jne 0x4122ed
push 0x5007b0
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x85
push eax
push dword [0x534a10]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x4122f2
cmp edi, 1
jne 0x412337
push 0x5007b0
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x86
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x412351
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x41235b
cmp edi, 1
jne 0x4123a0
push 0x500838
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x87
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x4123ba
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x4123c3
test edi, edi
jne 0x412406
push 0x5008d8
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x88
push eax
push dword [0x534a10]
push 0
call fcn.0040aa80
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x41240b
cmp edi, 1
jne 0x412449
push 0x5008d8
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x89
push eax
push dword [0x534a0c]
push 0
call fcn.0040aa80
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x412463
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x41246d
cmp edi, 1
jne 0x4124ab
push 0x500938
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x8a
push eax
push dword [0x534a0c]
push 0
call fcn.0040aa80
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x4124c5
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x4124ce
test edi, edi
jne 0x412518
push 0x5009b0
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x8b
push eax
push dword [0x534a10]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x41251d
cmp edi, 1
jne 0x412562
push 0x5009b0
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x8c
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x41257c
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x412586
cmp edi, 1
jne 0x4125cb
push 0x500a18
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x8d
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x4125e5
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x4125ee
test edi, edi
jne 0x412638
push 0x500a98
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x8e
push eax
push dword [0x534a10]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x41263d
cmp edi, 1
jne 0x412682
push 0x500a98
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x8f
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x41269c
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x4126a6
cmp edi, 1
jne 0x4126eb
push 0x500b00
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x90
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x412705
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x41270e
test edi, edi
jne 0x412758
push 0x500b80
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x91
push eax
push dword [0x534a10]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x41275d
cmp edi, 1
jne 0x4127a2
push 0x500b80
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x92
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x4127bc
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x4127c6
cmp edi, 1
jne 0x41280b
push 0x500be8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x93
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x412825
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x41282e
test edi, edi
jne 0x412878
push 0x500c68
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x94
push eax
push dword [0x534a10]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x41287d
cmp edi, 1
jne 0x4128c2
push 0x500c68
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x95
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x4128dc
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x4128e6
cmp edi, 1
jne 0x41292b
push 0x500cd8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x96
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x412945
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x41294e
test edi, edi
jne 0x412998
push 0x500d60
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x97
push eax
push dword [0x534a10]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x41299d
cmp edi, 1
jne 0x4129e2
push 0x500d60
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x98
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x4129fc
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x412a06
cmp edi, 1
jne 0x412a4b
push 0x500e00
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x99
push eax
push dword [0x534a0c]
push 0
call fcn.004203e0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x412a65
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x412a6e
test edi, edi
jne 0x412ad6
push 0x20
push 0x500eb8
push 0x500ed8
push dword [0x534a10]
push 0
call fcn.0040de60
add esp, 0x14
cmp edi, 2
je 0x412a93
test edi, edi
jne 0x412ad6
push 0x500f58
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x9a
push eax
push dword [0x534a10]
push 0
call fcn.0040aa80
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x412adb
cmp edi, 1
jne 0x412b19
push 0x500f58
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x9b
push eax
push dword [0x534a0c]
push 0
call fcn.0040aa80
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x412b33
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x412b3d
cmp edi, 1
jne 0x412b7b
push 0x500f58
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x18], esi
call fcn.004c8c7f
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x9c
push eax
push dword [0x534a0c]
push 0
call fcn.0040aa80
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x412b95
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp dword [ebp - 0x1c], 0
je 0x412f9c
mov dword [0x53ff7c], 8
cmp edi, 2
je 0x412bb2
test edi, edi
jne 0x412bf9
push 0x500fa0
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x1c], esi
call fcn.004c8c7f
push 1
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0x9d
push eax
push dword [0x534a10]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
cmp edi, 2
je 0x412bfe
cmp edi, 1
jne 0x412c40
push 0x501008
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x1c], esi
call fcn.004c8c7f
push 1
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0x9e
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x412c5a
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x412c64
cmp edi, 1
jne 0x412ca6
push 0x501068
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x1c], esi
call fcn.004c8c7f
push 1
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0x9f
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x412cc0
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x412cc9
test edi, edi
jne 0x412d13
push 0x5010e0
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0xa0
push eax
push dword [0x534a10]
push 0
call fcn.004186d0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x412d18
cmp edi, 1
jne 0x412d5d
push 0x5010e0
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0xa1
push eax
push dword [0x534a0c]
push 0
call fcn.004186d0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x412d77
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x412d80
test edi, edi
jne 0x412dca
push 0x501148
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0xa2
push eax
push dword [0x534a10]
push 0
call fcn.004186d0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x412dcf
cmp edi, 1
jne 0x412e14
push 0x501148
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0xa3
push eax
push dword [0x534a0c]
push 0
call fcn.004186d0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x412e2e
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x412e37
test edi, edi
jne 0x412e81
push 0x5011c8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0xa4
push eax
push dword [0x534a10]
push 0
call fcn.004186d0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x412e86
cmp edi, 1
jne 0x412ecb
push 0x5011c8
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0xa5
push eax
push dword [0x534a0c]
push 0
call fcn.004186d0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x412ee5
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x412eee
test edi, edi
jne 0x412f38
push 0x501228
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0xa6
push eax
push dword [0x534a10]
push 0
call fcn.004186d0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x412f3d
cmp edi, 1
jne 0x412f82
push 0x501228
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0xa7
push eax
push dword [0x534a0c]
push 0
call fcn.004186d0
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x412f9c
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
test byte [ebp + 8], 0x80
je 0x413376
lea eax, [ebp - 0x1c]
mov dword [0x53ff7c], 0x80
push eax
push 0x20019
push 0
push 0x5012a0
push dword [0x534a0c]
call fcn.00408690
add esp, 0x14
test eax, eax
je 0x413005
cmp dword [0x540428], 0
je 0x413376
cmp edi, 2
je 0x412fed
cmp edi, 1
jne 0x413376
push 0x501310
push dword [0x54042c]
call fcn.00413e60
add esp, 8
jmp 0x413376
cmp edi, 2
je 0x41300e
test edi, edi
jne 0x413055
push 0x5012a0
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 8], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp + 8]
mov dword [ebp - 4], 0xa8
push eax
push dword [0x534a10]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
cmp edi, 2
je 0x41305a
cmp edi, 1
jne 0x41309c
push 0x5012a0
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 8], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp + 8]
mov dword [ebp - 4], 0xa9
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x4130b6
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x4130bf
test edi, edi
jne 0x413106
push 0x5013a8
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 8], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp + 8]
mov dword [ebp - 4], 0xaa
push eax
push dword [0x534a10]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
cmp edi, 2
je 0x41310b
cmp edi, 1
jne 0x41314d
push 0x5013a8
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 8], esi
call fcn.004c8c7f
push 0
push 1
lea eax, [ebp + 8]
mov dword [ebp - 4], 0xab
push eax
push dword [0x534a0c]
push 0
call fcn.0040c2d0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x20
mov eax, dword [0x54000c]
test eax, eax
je 0x413167
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x413170
test edi, edi
jne 0x4131b3
push 0x501430
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 8], esi
call fcn.004c8c7f
lea eax, [ebp + 8]
mov dword [ebp - 4], 0xac
push eax
push dword [0x534a10]
push 0
call fcn.0040aa80
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
cmp edi, 2
je 0x4131b8
cmp edi, 1
jne 0x4131f6
push 0x501430
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 8], esi
call fcn.004c8c7f
lea eax, [ebp + 8]
mov dword [ebp - 4], 0xad
push eax
push dword [0x534a0c]
push 0
call fcn.0040aa80
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x413210
push 1
call eax
push 0x200
push dword [0x540000]
call ebx
cmp edi, 2
je 0x41321a
cmp edi, 1
jne 0x413258
push 0x501430
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp + 8], esi
call fcn.004c8c7f
lea eax, [ebp + 8]
mov dword [ebp - 4], 0xae
push eax
push dword [0x534a0c]
push 0
call fcn.0040aa80
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x18
mov eax, dword [0x54000c]
test eax, eax
je 0x413272
push 0
call eax
push 0x100
push dword [0x540000]
call ebx
cmp edi, 2
je 0x41327b
test edi, edi
jne 0x4132f7
push 0x501460
push dword [0x534a10]
push 0
push 1
call fcn.0040b680
add esp, 0x10
cmp edi, 2
je 0x41329b
test edi, edi
jne 0x4132f7
push 0x5014b0
push dword [0x534a10]
push 0
push 1
call fcn.0040b680
add esp, 0x10
cmp edi, 2
je 0x4132bb
test edi, edi
jne 0x4132f7
push 0x501500
push dword [0x534a10]
push 0
push 1
call fcn.0040b680
add esp, 0x10
cmp edi, 2
je 0x4132db
test edi, edi
jne 0x4132f7
push 0x501550
push dword [0x534a10]
push 0
push 1
call fcn.0040b680
add esp, 0x10
cmp edi, 2
je 0x4132fc
cmp edi, 1
jne 0x413376
push 0x501460
push dword [0x534a0c]
push 0
push 1
call fcn.0040b680
add esp, 0x10
cmp edi, 2
je 0x41331d
cmp edi, 1
jne 0x413376
push 0x5014b0
push dword [0x534a0c]
push 0
push 1
call fcn.0040b680
add esp, 0x10
cmp edi, 2
je 0x41333e
cmp edi, 1
jne 0x413376
push 0x501500
push dword [0x534a0c]
push 0
push 1
call fcn.0040b680
add esp, 0x10
cmp edi, 2
je 0x41335f
cmp edi, 1
jne 0x413376
push 0x501550
push dword [0x534a0c]
push 0
push 1
call fcn.0040b680
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x413424
mov dword [0x53ff7c], 2
cmp edi, 2
je 0x413393
test edi, edi
jne 0x4133df
push 0x4fe340
mov dword [ebp + 8], 0
call fcn.004c8c20
push 0
mov dword [ebp + 8], eax
call fcn.004c8c7f
push 1
lea eax, [ebp + 8]
mov dword [ebp - 4], 0xaf
push eax
push dword [0x534a10]
push 0
call fcn.00415cc0
push dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8c7f
add esp, 0x1c
cmp edi, 2
je 0x4133e4
cmp edi, 1
jne 0x413424
push 0x4fe2c8
mov dword [ebp + 8], 0
call fcn.004c8c20
push 0
mov dword [ebp + 8], eax
call fcn.004c8c7f
push 1
lea eax, [ebp + 8]
mov dword [ebp - 4], 0xb0
push eax
push dword [0x534a0c]
push 0
call fcn.00415cc0
push dword [ebp + 8]
call fcn.004c8c7f
add esp, 0x1c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret