Function at 0x100262be
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x4c
xor ecx, ecx
and dword [eax], 0
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov word [eax], cx
dec esi
push 0x1c
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100263a5
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0x48]
call fcn.1002811b
add esp, 0xc
test eax, eax
je 0x100263a5
mov eax, dword [ebp - 0x48]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100263a5
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jle 0x100263a5
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100263a5
movzx edi, word [ecx + 0x14]
sub esi, eax
movzx edx, word [ecx + 6]
add edi, 0x20
xor ebx, ebx
xor eax, eax
test edx, edx
je 0x1002635a
add ecx, edi
cmp esi, dword [ecx + 4]
jb 0x10026352
mov ebx, esi
sub ebx, dword [ecx + 4]
cmp esi, dword [ecx]
jb 0x1002635a
inc eax
add ecx, 0x28
cmp eax, edx
jb 0x10026344
cmp eax, edx
je 0x100263a5
inc eax
mov dword [ebp - 0x20], eax
xor eax, eax
inc eax
cmp byte [0x10093785], 0
jne 0x100263ac
cmp dword [0x10093780], 0
jne 0x100263a5
cmp byte [0x10093784], 0
jne 0x1002639e
mov byte [0x10093784], al
call fcn.100260d2
test eax, eax
je 0x1002639e
xor edx, edx
mov dword [0x10093780], eax
inc edx
mov byte [0x10093785], dl
jmp 0x100263b1
and dword [0x10093780], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [0x10093780]
push str.PDBOpenValidate5
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100263a5
xor edi, edi
lea eax, [ebp - 0x18]
push eax
push edi
push edi
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
push edi
push edi
push edi
push dword [ebp + 0x18]
call dword [0x1007b254]
call esi
add esp, 0x20
test eax, eax
je 0x100263a5
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0x18]
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x1007b254]
mov ecx, edi
call esi
cmp eax, 0x1329141
jne 0x100265f7
mov edi, dword [ebp - 0x18]
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x28]
push eax
push 0x1007d250
push 0
mov ecx, esi
call dword [0x1007b254]
mov ecx, edi
call esi
test eax, eax
je 0x100265f7
mov edi, dword [ebp - 0x28]
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push ebx
push dword [ebp - 0x20]
call dword [0x1007b254]
mov ecx, edi
call esi
test eax, eax
je 0x100265e3
mov edi, dword [ebp - 0x14]
mov eax, dword [edi]
mov esi, dword [eax + 0x68]
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call dword [0x1007b254]
mov ecx, edi
call esi
test al, al
je 0x100265cf
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x100265cf
jmp 0x100264d6
mov edi, dword [ebp - 0xc]
push 0
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
call dword [0x1007b254]
mov ecx, edi
call esi
test al, al
je 0x100265bc
movzx eax, word [ebp - 4]
cmp eax, dword [ebp - 0x20]
jne 0x100264d3
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
ja 0x100264d3
mov eax, dword [ebp - 0x2c]
add eax, ecx
cmp ebx, eax
jb 0x100264f0
mov edi, dword [ebp - 0xc]
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1007b254]
mov ecx, edi
call esi
test eax, eax
jne 0x1002648a
jmp 0x100265a9
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x100265bc
cmp esi, 0x1fffffff
jae 0x100265bc
shl esi, 3
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x100265bc
mov edi, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [edi]
xor eax, eax
push eax
push eax
push eax
mov esi, dword [ecx + 0xc]
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call dword [0x1007b254]
mov ecx, edi
call esi
mov ecx, dword [ebp - 8]
test al, al
je 0x100265ac
sub ebx, dword [ebp - 0x24]
cmp ebx, dword [ecx]
jb 0x100265ac
xor edx, edx
inc edx
mov eax, edx
cmp dword [ebp - 0x10], edx
jbe 0x1002656a
cmp ebx, dword [ecx + eax*8]
jb 0x1002656a
inc eax
cmp eax, dword [ebp - 0x10]
jb 0x1002655f
mov eax, dword [ecx + eax*8 - 4]
mov ecx, dword [ebp + 0x14]
and eax, 0xffffff
mov edi, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [edi]
mov esi, dword [eax + 0x70]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call dword [0x1007b254]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x1c]
test al, al
push 1
pop edx
cmovne ecx, edx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp - 0xc]
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x1007b254]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x14]
mov eax, dword [edi]
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x1007b254]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x28]
mov eax, dword [edi]
mov esi, dword [eax + 0x38]
mov ecx, esi
call dword [0x1007b254]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x18]
mov edx, dword [edi]
mov esi, dword [edx + 0x2c]
mov ecx, esi
call dword [0x1007b254]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x1c]
jmp 0x100263a7