Function at 0x5b2942
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
sub esp, 0x44
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [eax], ebx
xor eax, eax
mov word [ecx], ax
push 0x1c
lea eax, [ebp - 0x44]
push eax
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x5b2977
xor eax, eax
jmp 0x5b2bc9
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x5b2970
mov edx, dword [ebp - 0x40]
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x5b2970
mov eax, dword [edx + 0x3c]
cmp eax, ebx
jle 0x5b2970
add eax, edx
cmp dword [eax], 0x4550
jne 0x5b2970
movzx ecx, word [eax + 6]
push edi
movzx edi, word [eax + 0x14]
lea eax, [edi + eax + 0x24]
sub esi, edx
xor edi, edi
mov dword [ebp - 4], ebx
cmp ecx, ebx
jbe 0x5b29da
mov edx, dword [eax]
cmp esi, edx
jb 0x5b29cf
mov edi, esi
sub edi, edx
cmp esi, dword [eax - 4]
jb 0x5b29da
inc dword [ebp - 4]
add eax, 0x28
cmp dword [ebp - 4], ecx
jb 0x5b29c0
cmp dword [ebp - 4], ecx
je 0x5b2a48
inc dword [ebp - 4]
cmp byte [0x6f8301], bl
jne 0x5b2a1a
cmp dword [0x6f82fc], ebx
jne 0x5b2a48
cmp byte [0x6f8300], bl
je 0x5b29fe
xor eax, eax
jmp 0x5b2a0a
mov byte [0x6f8300], 1
call fcn.005b27e3
mov dword [0x6f82fc], eax
cmp eax, ebx
je 0x5b2a48
mov byte [0x6f8301], 1
push str.PDBOpenValidate5
push dword [0x6f82fc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x5b2a48
lea ecx, [ebp - 0x14]
push ecx
push ebx
push ebx
lea ecx, [ebp - 0x28]
push ecx
push ebx
push ebx
push ebx
push dword [ebp + 0x18]
call eax
add esp, 0x20
test eax, eax
jne 0x5b2a4f
xor eax, eax
jmp 0x5b2bc8
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov dword [ebp - 0x20], ebx
call dword [eax]
cmp eax, 0x131a5b5
jne 0x5b2bbd
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
push 0x5c7874
push ebx
call dword [eax + 0x1c]
test eax, eax
je 0x5b2bbd
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
lea edx, [ebp - 0x10]
push edx
push edi
push dword [ebp - 4]
call dword [eax + 0x20]
test eax, eax
je 0x5b2bb5
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 8]
mov dword [ebp - 8], ebx
mov eax, dword [ecx]
push edx
call dword [eax + 0x68]
test al, al
je 0x5b2bad
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x5b2bad
xor esi, esi
jmp 0x5b2afb
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
push ebx
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp + 8]
push edx
lea edx, [ebp - 0x18]
push edx
push ebx
call dword [eax + 0xc]
test al, al
je 0x5b2ba6
movzx eax, word [ebp + 8]
cmp eax, dword [ebp - 4]
jne 0x5b2af8
mov eax, dword [ebp - 0x18]
cmp eax, edi
ja 0x5b2af8
add eax, dword [ebp - 0x24]
cmp edi, eax
jb 0x5b2b09
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne 0x5b2abf
jmp 0x5b2b97
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x5b2ba6
cmp eax, 0x1fffffff
jae 0x5b2ba6
shl eax, 3
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x5b2ba6
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
push esi
lea edx, [ebp - 0xc]
push edx
push ebx
push ebx
push ebx
lea edx, [ebp - 4]
push edx
call dword [eax + 0xc]
test al, al
je 0x5b2b97
sub edi, dword [ebp - 0x18]
mov ecx, edi
cmp ecx, dword [esi]
jb 0x5b2b97
xor edi, edi
inc edi
mov eax, edi
cmp dword [ebp - 0xc], edi
jbe 0x5b2b6d
cmp ecx, dword [esi + eax*8]
jb 0x5b2b6d
inc eax
cmp eax, dword [ebp - 0xc]
jb 0x5b2b62
mov eax, dword [esi + eax*8 - 4]
mov ecx, dword [ebp + 0x14]
push ebx
push ebx
push ebx
lea edx, [ebp + 0x10]
push edx
push dword [ebp + 0xc]
and eax, 0xffffff
push dword [ebp - 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x70]
test al, al
je 0x5b2b97
mov dword [ebp - 0x20], edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x40]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret