Function at 0x417340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x450ec0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push esi
push edi
mov ebp, ecx
push 0x466bb8
push 0x4668c8
lea ecx, [esp + 0x58]
mov dword [esp + 0x4c], 1
call fcn.0043a5e0
push 0x466bb8
push 0x467954
lea ecx, [esp + 0x58]
call fcn.0043a5e0
test eax, eax
je 0x4173a6
push 0x466bb8
push 0x467954
lea ecx, [esp + 0x58]
call fcn.0043a5e0
test eax, eax
jne 0x41738f
push 0x466bb8
lea ecx, [esp + 0x54]
call fcn.0043acab
mov eax, dword [esp + 0x50]
push 0x46c838
push eax
call fcn.0041a96f
add esp, 8
test eax, eax
je 0x41757b
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x10]
call fcn.00440ddb
push 0x2f
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 2
call fcn.0043a8f0
mov esi, eax
cmp esi, 0xffffffff
je 0x417470
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x58]
call fcn.0043a878
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 3
call fcn.00441153
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 2
call fcn.00441066
mov eax, dword [esp + 0xc]
push 0x46c838
push eax
call fcn.0041a96f
add esp, 8
test eax, eax
jne 0x417443
push 0x466bb8
lea ecx, [esp + 0x10]
call fcn.004411a3
inc esi
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x58]
call fcn.0043a743
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 4
call fcn.00441153
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 2
call fcn.00441066
lea ecx, [esp + 0x18]
call fcn.004158c0
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
mov ecx, ebp
mov byte [esp + 0x54], 5
call fcn.004165a0
mov esi, eax
lea eax, [esp + 0x1c]
push 0x4668c8
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004412af
lea edx, [esp + 0x50]
mov byte [esp + 0x44], 6
push edx
push eax
lea eax, [esp + 0x54]
push eax
call fcn.00441249
mov edi, dword [esp + 0x5c]
push eax
mov ecx, edi
mov byte [esp + 0x48], 7
call fcn.00441153
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 6
call fcn.00441066
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 5
call fcn.00441066
test esi, esi
je 0x417546
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.00415900
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 1
call fcn.00441066
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], 0
call fcn.00441066
lea ecx, [esp + 0x54]
mov dword [esp + 0x44], 0xffffffff
call fcn.00441066
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x14
mov esi, dword [esp + 0x58]
cmp esi, 2
je 0x4175b3
mov eax, dword [edi]
push 0
push eax
mov ecx, ebp
call fcn.00417300
test eax, eax
jne 0x4175b3
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.00415900
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 1
call fcn.00441066
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], 0
call fcn.00441066
lea ecx, [esp + 0x54]
mov dword [esp + 0x44], 0xffffffff
call fcn.00441066
pop edi
pop esi
mov eax, 2
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x14
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4175c0
cmp esi, 1
je 0x4175e7
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4175cd
cmp esi, 4
je 0x4175e7
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4175da
cmp esi, 2
je 0x4175e7
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x41763b
cmp esi, 3
jne 0x41763b
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.00415900
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 1
call fcn.00441066
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], 0
call fcn.00441066
lea ecx, [esp + 0x54]
mov dword [esp + 0x44], 0xffffffff
call fcn.00441066
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x14
cmp esi, 6
jne 0x417692
lea ecx, [esp + 0x54]
push 0x466bb8
lea edx, [esp + 0x60]
push ecx
push edx
call fcn.004412af
lea ecx, [esp + 0x50]
lea edx, [esp + 0x4c]
push ecx
push eax
push edx
mov byte [esp + 0x50], 8
call fcn.00441249
push eax
mov ecx, edi
mov byte [esp + 0x48], 9
call fcn.00441153
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 8
call fcn.00441066
lea ecx, [esp + 0x5c]
mov byte [esp + 0x44], 5
call fcn.00441066
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.00415900
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 1
call fcn.00441066
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], 0
call fcn.00441066
lea ecx, [esp + 0x54]
mov dword [esp + 0x44], 0xffffffff
call fcn.00441066
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x14