Function at 0x41808a
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453137
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4691c0]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x4691c0]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, ecx
lea esi, [eax + 0x30]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov dword [esp + 0x14], esi
sar eax, 2
cmp edi, eax
jb 0x4180f0
mov eax, 0x200
jmp 0x4182de
cmp dword [ebx], 0
jne 0x4180fd
xor eax, eax
inc eax
jmp 0x4182de
mov dword [esp + 0x18], 0x1000000
call fcn.004184a0
cmp dword [eax], 0
je 0x4182da
call fcn.004184a0
mov eax, dword [eax]
xor esi, esi
cmp dword [eax + 0xc], esi
je 0x4181cd
lea eax, [esp + 0x84]
call fcn.0042f27d
mov dword [esp + 0x108], esi
mov esi, dword [esp + 0x14]
call fcn.004184a0
mov eax, dword [eax]
mov eax, dword [eax + 4]
cmp dword [eax + 0x18], 8
jb 0x418151
mov eax, dword [eax + 4]
jmp 0x418154
add eax, 4
push eax
lea esi, [esp + 0x88]
call fcn.0042f5a1
mov dword [esp + 0x18], eax
test al, 1
je 0x4181bc
mov esi, dword [esp + 0x14]
call fcn.004184a0
mov eax, dword [eax]
mov edi, dword [eax + 4]
lea esi, [ebx + 0x28]
call fcn.004132e8
lea ecx, [esp + 0x84]
call fcn.0042f5bf
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
call fcn.0042f5cd
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
call fcn.0042f5c6
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
call fcn.0042f5b4
mov dword [ebx + 0x20], eax
mov eax, ecx
mov dword [ebx + 0x24], edx
call fcn.0042f5bb
mov dword [ebx + 4], eax
lea ecx, [esp + 0x84]
call fcn.0042f2ab
jmp 0x4182da
mov eax, dword [ebx]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
call fcn.004184a0
mov eax, dword [eax]
cmp dword [eax], 0
je 0x4182da
call fcn.004184a0
mov eax, dword [eax]
mov eax, dword [eax]
call fcn.0042f1e3
test eax, eax
je 0x4182da
call fcn.004184a0
mov eax, dword [eax]
mov ecx, dword [eax]
mov eax, dword [ecx]
lea edx, [esp + 0x1c]
push edx
call dword [eax + 0x2c]
cmp dword [esp + 0x44], 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 4], eax
je 0x4182a7
push dword [esp + 0x44]
lea edi, [esp + 0x88]
call fcn.004091a8
lea esi, [ebx + 0x28]
mov dword [esp + 0x108], 1
call fcn.004132e8
jmp 0x4182d5
push 0x45f268
lea eax, [esp + 0x50]
call fcn.0040122e
lea esi, [esp + 0x68]
call fcn.0040805a
lea esi, [ebx + 0x28]
lea edi, [esp + 0x4c]
mov dword [esp + 0x108], 2
call fcn.004132e8
call fcn.004080f1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.0043d493
mov esp, ebp
pop ebp
ret 8