Function at 0x340de0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4adde3
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5116ec]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov eax, dword [0x5116ec]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x40], ebx
mov esi, dword [edi + 0xc]
mov eax, dword [eax + 0x80]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x28], eax
cmp esi, 1
je 0x340e53
push 3
push eax
mov esi, edi
mov dword [esp + 0x24], ebx
call fcn.0032bdc0
jmp 0x340fd7
mov eax, dword [edi + 0x18]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x340e66
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x340e6f
mov ecx, dword [ecx + 0x5c]
jmp 0x340e92
add ecx, 0x38
lea ebx, [esp + 0x14]
lea eax, [esp + 0x24]
call fcn.00341fa0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [esp + 0x24]
xor ebx, ebx
cmp ecx, eax
je 0x340e96
mov ecx, dword [ecx + 0x10]
cmp ecx, ebx
jne 0x340eb0
mov ecx, dword [esp + 0x28]
push 4
push ecx
mov ecx, dword [ebp + 8]
mov esi, edi
mov dword [esp + 0x24], ebx
call fcn.0032bdc0
jmp 0x340fd7
cmp esi, 1
jne 0x340ecc
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
or dword [edi + 0x28], 0xe
mov dword [edi + 0xc], 2
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], eax
or dword [edi + 0x28], 0x40
cmp dword [edi + 0x20], ebx
jne 0x340f00
push 0x130
call fcn.00438a50
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x40], 2
cmp eax, ebx
je 0x340ef7
push eax
call fcn.00323050
jmp 0x340ef9
xor eax, eax
mov byte [esp + 0x40], bl
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x2c], ecx
call eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
mov dword [esp + 0x14], ebx
sar eax, 2
mov dword [esp + 0x20], eax
cmp eax, ebx
jbe 0x340fc6
jmp 0x340f34
mov ebp, dword [esp + 0x30]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx*4]
mov ebp, dword [ebp + 8]
mov dword [esp + 0x24], eax
lea ecx, [ebp + 0x18]
lea ebx, [esp + 0x24]
lea eax, [esp + 0x18]
call fcn.00341fa0
mov ecx, dword [esp + 0x18]
cmp ecx, dword [ebp + 0x1c]
je 0x340f63
mov esi, dword [ecx + 0x10]
jmp 0x340f65
xor esi, esi
mov eax, ebp
call fcn.00328a00
test al, al
je 0x340fb1
mov ebp, dword [esp + 0x2c]
mov eax, ebp
call fcn.00305f40
mov ebx, eax
cmp esi, ebx
je 0x340f92
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
push esi
mov ecx, ebx
call fcn.0031de10
mov eax, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], eax
jne 0x340fa4
inc eax
push eax
lea eax, [ebp + 0x18]
call fcn.00327c30
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov byte [ecx + edx], 1
inc dword [ebp + 0x1c]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x20]
jb 0x340f30
xor ebx, ebx
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov edx, dword [eax]
push edi
mov dword [esp + 0x20], ebx
call edx
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00438a41
add esp, 0x34
ret 8