Function at 0x100052b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x101636b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
push esi
push edi
test ebx, ebx
je 0x1000555c
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x1000555c
mov eax, dword [ebx + 0x3c]
lea esi, [ebx + eax]
add eax, 0xf8
cmp dword [esi], 0x4550
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], eax
jne 0x1000555c
push 0x25e16828
call fcn.100055f0
add esp, 4
push 0x40
push 0x1000
push dword [esi + 0x50]
push 0
call eax
mov edi, eax
mov dword [ebp - 0x48], edi
test edi, edi
je 0x1000555e
mov esi, ebx
mov ecx, edi
mov edx, 0x40
sub esi, edi
nop
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x10005330
mov ecx, dword [ebx + 0x3c]
mov esi, 0xf8
mov edx, dword [ebp - 0x3c]
add ecx, edi
nop dword [eax + eax]
mov al, byte [edx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea edx, [edx + 1]
sub esi, 1
jne 0x10005350
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebx + 0x3c]
mov esi, dword [ebp - 0x34]
add esi, ebx
movzx eax, word [eax + 6]
lea eax, [eax + eax*4]
shl eax, 3
push eax
lea eax, [ecx + 0xf8]
push esi
add eax, edi
push eax
call fcn.10019f10
mov eax, dword [ebx + 0x3c]
cmp eax, 0x40
jbe 0x1000539e
add eax, 0xffffffc0
push eax
lea eax, [ebx + 0x40]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.10019f10
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
xor ebx, ebx
cmp cx, word [eax + 6]
jae 0x100053ef
nop dword [eax + eax]
mov eax, esi
add esi, 0x28
mov dword [ebp - 0x34], esi
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x14]
add ecx, edi
add edx, dword [ebp - 0x30]
mov esi, dword [eax + 0x10]
test esi, esi
je 0x100053e0
nop word [eax + eax]
mov al, byte [edx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea edx, [edx + 1]
sub esi, 1
jne 0x100053d0
mov eax, dword [ebp - 0x3c]
inc ebx
mov esi, dword [ebp - 0x34]
movzx eax, word [eax + 6]
cmp ebx, eax
jl 0x100053b0
mov esi, dword [edi + 0x3c]
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x35], 1
mov ebx, dword [esi + edi + 0x34]
cmp edi, ebx
je 0x100054c5
push 0
lea eax, [ebp - 0x30]
push eax
push 1
push 0x40000
push 2
call dword [sym.imp.ADVAPI32.dll_SaferCreateLevel]
mov eax, edi
sub eax, ebx
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + edi + 0xa0]
test eax, eax
je 0x100054c5
mov ecx, dword [ebp - 0x30]
lea ebx, [eax + edi]
movzx edx, byte [ebp - 0x35]
xor esi, esi
mov eax, dword [ebx + 4]
test ecx, ecx
cmove edx, esi
lea esi, [ebx + 4]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], esi
test eax, eax
je 0x100054ba
add eax, 0xfffffff8
mov edx, 0
shr eax, 1
mov dword [ebp - 0x44], eax
je 0x100054a5
lea esi, [ebx + 8]
nop word [eax + eax]
movzx ecx, word [esi]
mov ax, cx
shr ax, 0xc
movzx eax, ax
test ax, ax
je 0x10005499
cmp eax, 3
jne 0x10005545
mov eax, dword [ebp - 0x4c]
and ecx, 0xfff
add ecx, dword [ebx]
add dword [ecx + edi], eax
inc edx
add esi, 2
cmp edx, dword [ebp - 0x44]
jb 0x10005470
mov esi, dword [ebp - 0x34]
add ebx, dword [esi]
mov eax, dword [ebx + 4]
lea esi, [ebx + 4]
mov dword [ebp - 0x34], esi
test eax, eax
jne 0x10005455
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x40]
test dl, dl
je 0x100054c5
push ecx
call dword [sym.imp.ADVAPI32.dll_SaferCloseLevel]
push 0x638b488e
call fcn.100055f0
mov esi, eax
push 0x211333f7
mov dword [ebp - 0x44], esi
call fcn.100055f0
mov dword [ebp - 0x34], eax
add esp, 8
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax + edi + 0x80]
test ecx, ecx
je 0x100055b5
lea ebx, [ecx + edi]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x30], ebx
test ecx, ecx
je 0x100055b5
lea eax, [ecx + edi]
push eax
call esi
mov edx, eax
mov dword [ebp - 0x40], edx
test edx, edx
je 0x10005545
mov ecx, dword [ebx]
test ecx, ecx
jne 0x1000551f
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + edi]
lea esi, [ecx + edi]
xor ebx, ebx
test eax, eax
je 0x1000559e
nop dword [eax + eax]
add eax, edi
cmp eax, 0x80000000
jae 0x10005571
cmp byte [eax + 2], 0
lea ecx, [eax + 2]
je 0x10005571
push ecx
jmp 0x10005575
push 0x23acd28c
call fcn.100055f0
add esp, 4
push 0x8000
push 0
push edi
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dfe28
mov esp, ebp
pop ebp
ret 4
movzx eax, ax
push eax
push edx
call dword [ebp - 0x34]
mov ecx, eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x1000558c
add eax, ebx
mov dword [eax + edi], ecx
jmp 0x1000558e
mov dword [esi], ecx
mov eax, dword [esi + 4]
add esi, 4
mov edx, dword [ebp - 0x40]
add ebx, 4
test eax, eax
jne 0x10005530
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x44]
add ebx, 0x14
mov dword [ebp - 0x30], ebx
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x10005507
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x48]
push 0
push 1
push dword [ebp - 0x48]
call eax
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100dfe28
mov esp, ebp
pop ebp
ret 4