Function at 0x849d1
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push 4
push 0x1000
push 0x8000
push 0
call fcn.00085f76
mov dword [ebp - 4], eax
test eax, eax
je 0x84ce5
push 4
push 0x1000
push 0x8000
push 0
call fcn.00085f76
mov dword [ebp - 0xc], eax
test eax, eax
je 0x84cd6
push 0x8000
push dword [ebp - 0xc]
push dword [0x100410c]
call fcn.00085f0a
push 0x1001304
push dword [ebp - 0xc]
call fcn.00085fd0
push 0
push dword [ebp - 0xc]
call fcn.00085fa0
push 0x1001324
push dword [ebp - 0xc]
call fcn.00085fd0
push 0
push dword [ebp - 0xc]
call fcn.00085fa0
push 0x8000
push dword [ebp - 0xc]
push dword [ebp - 0xc]
call fcn.00085f28
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00085fdc
push dword [ebp - 4]
call fcn.00085fe2
shl eax, 1
mov esi, dword [ebp - 4]
lea esi, [eax + esi]
std
lodsw ax, word [esi]
cmp ax, 0x5c
jne 0x84a80
cld
mov word [esi + 2], 0
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00085fd6
test eax, eax
jne 0x84abc
push eax
push eax
push 3
push eax
push 1
push 0x80000000
push dword [ebp + 8]
call fcn.00085fa6
mov dword [0x10040d0], eax
jmp 0x84cc7
call fcn.00084833
test eax, eax
je 0x84cc7
push eax
push dword [0x1004110]
push eax
push dword [ebp - 0xc]
push 0x1001330
push dword [ebp - 0xc]
call fcn.000860ae
add esp, 0x14
lea eax, [eax*2 + 2]
mov dword [ebp - 0x10], eax
push 0
push dword [0x10040f0]
call fcn.00085f46
xor ecx, ecx
push ecx
push pe_nt_image_headers32
push 3
push ecx
push ecx
push 0x80000000
push dword [ebp + 8]
call fcn.00085fa6
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x84cc7
xor ecx, ecx
push ecx
push 6
push 2
push ecx
push ecx
push 0x40000000
push dword [ebp - 0xc]
call fcn.00085fa6
mov dword [0x10040d0], eax
cmp eax, 0xffffffff
je 0x84cc7
push 0
lea eax, [ebp - 8]
push eax
push 0x8000
push dword [ebp - 4]
push dword [ebp - 0x14]
call fcn.00085fbe
cmp dword [ebp - 8], 0
je 0x84b79
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [0x10040d0]
call fcn.00085fca
jmp 0x84b44
push dword [ebp - 0x14]
call fcn.00085ee6
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
add eax, 0x24
mov eax, dword [eax + 4]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push eax
call fcn.00085fa6
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x14]
call fcn.00085fac
push dword [ebp - 0x14]
call fcn.00085ee6
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10040d0]
call fcn.00085fc4
push dword [0x10040d0]
call fcn.00085ee6
push dword [0x1004104]
push dword [ebp - 4]
call fcn.00085f8e
xor ecx, ecx
push ecx
lea eax, [ebp - 0x18]
push eax
push ecx
push 0x40000
push ecx
push ecx
push ecx
push dword [ebp - 4]
push dword [0x1004100]
call fcn.00086066
test eax, eax
jne 0x84cc7
push 0
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x1001346
call fcn.00086084
push dword [ebp - 0x1c]
push 4
push dword [ebp - 0x18]
call fcn.00086096
test eax, eax
jne 0x84cc7
push dword [ebp - 0x18]
call fcn.00086060
xor ecx, ecx
push ecx
lea eax, [ebp - 0x18]
push eax
push ecx
push 0x60006
push ecx
push ecx
push ecx
push dword [ebp - 4]
push dword [0x1004100]
call fcn.00086066
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 1
push 0
push dword [0x1004108]
push dword [ebp - 0x18]
call fcn.0008609c
push 0
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x1001355
call fcn.00086084
push dword [ebp - 0x1c]
push 4
push dword [ebp - 0x18]
call fcn.00086096
push dword [ebp - 0x18]
call fcn.00086060
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 1
push 0x80000000
push dword [ebp - 0xc]
call fcn.00085fa6
mov dword [0x10040d0], eax
push 0x8000
push 0
push dword [ebp - 0xc]
call fcn.00085f7c
push 0x8000
push 0
push dword [ebp - 4]
call fcn.00085f7c
leave
ret 4