Function at 0x383f40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x38fb64
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x3c508c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
movzx esi, ax
shr eax, 0x10
mov ebx, eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], ebx
cmp dword [edi + 0xc], esi
je 0x383fa7
cmp ebx, 2
jne 0x383fb0
mov eax, dword [edi + 0x10]
mov dword [edi + 0xc], esi
test eax, eax
je 0x383fac
mov eax, dword [eax + 0x20]
push ebx
push esi
push 0x558
push eax
call dword [0x39a364]
push 1
jmp 0x383fbc
cmp ebx, 2
jne 0x383fb0
push 1
jmp 0x383fbc
cmp ebx, 0xc
je 0x383fba
cmp ebx, 3
jne 0x383fc6
push 0
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
push esi
mov ecx, edi
call eax
cmp dword [edi + 8], ebx
je 0x38417b
mov dword [edi + 8], ebx
cmp ebx, 1
je 0x38400c
cmp ebx, 2
je 0x38400c
cmp ebx, 0xb
je 0x38400c
cmp ebx, 0xc
je 0x38400c
cmp ebx, 0x15
je 0x38400c
cmp ebx, 0x16
je 0x38400c
cmp ebx, 0xd
je 0x383ffe
cmp ebx, 3
jne 0x38417b
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
jmp 0x38417b
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov eax, ebx
mov ecx, edi
call fcn.003841d0
cmp ebx, 0xc
jne 0x38409a
push 0x39b42c
lea ecx, [esp + 0x14]
call dword [0x39a8d8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
call fcn.00358530
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 0x39d620
mov dword [esp + 0x28], eax
test eax, eax
je 0x38405f
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 2
call dword [0x39ad2c]
push 0
lea esi, [esp + 0x28]
call fcn.00383e20
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
test eax, eax
je 0x38416c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x38416c
cmp ebx, 2
jne 0x3841bc
push 0x39b42c
lea ecx, [esp + 0x14]
call dword [0x39a8d8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 3
call fcn.00358530
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x39d620
mov dword [esp + 0x28], eax
test eax, eax
je 0x3840df
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 5
call dword [0x39ad2c]
push 0x3af734
lea ecx, [esp + 0x18]
call dword [0x39a8d8]
lea ecx, [esp + 0x14]
lea ebx, [esp + 0x18]
mov byte [esp + 0x38], 6
call fcn.003581f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 8
call dword [0x39ad2c]
push 0x3af760
mov ecx, ebx
call dword [0x39ad1c]
test eax, eax
jne 0x384138
lea esi, [esp + 0x24]
call fcn.00383d80
push 0x80000000
lea esi, [esp + 0x28]
call fcn.00383e20
lea ecx, [esp + 0x18]
call dword [0x39ad2c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
test eax, eax
je 0x384168
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0xc]
push 0
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
mov eax, dword [edi + 0x10]
test eax, eax
je 0x38419d
cmp dword [eax + 0x20], 0
je 0x38419d
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x20]
push ecx
push 1
push 0x41c
push edx
call dword [0x39a364]
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push ebx
push esi
mov ecx, edi
call edx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp ebx, 1
jne 0x384170
push ebx
jmp 0x384172