Function at 0x1002624e
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 0x10026335
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0x48]
call fcn.100280ab
add esp, 0xc
test eax, eax
je 0x10026335
mov eax, dword [ebp - 0x48]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10026335
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jle 0x10026335
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10026335
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 0x100262ea
add ecx, edi
cmp esi, dword [ecx + 4]
jb 0x100262e2
mov ebx, esi
sub ebx, dword [ecx + 4]
cmp esi, dword [ecx]
jb 0x100262ea
inc eax
add ecx, 0x28
cmp eax, edx
jb 0x100262d4
cmp eax, edx
je 0x10026335
inc eax
mov dword [ebp - 0x20], eax
xor eax, eax
inc eax
cmp byte [0x10093785], 0
jne 0x1002633c
cmp dword [0x10093780], 0
jne 0x10026335
cmp byte [0x10093784], 0
jne 0x1002632e
mov byte [0x10093784], al
call fcn.10026062
test eax, eax
je 0x1002632e
xor edx, edx
mov dword [0x10093780], eax
inc edx
mov byte [0x10093785], dl
jmp 0x10026341
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 0x10026335
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 0x10026335
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 0x10026587
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 0x10026587
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 0x10026573
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 0x1002655f
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x1002655f
jmp 0x10026466
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 0x1002654c
movzx eax, word [ebp - 4]
cmp eax, dword [ebp - 0x20]
jne 0x10026463
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
ja 0x10026463
mov eax, dword [ebp - 0x2c]
add eax, ecx
cmp ebx, eax
jb 0x10026480
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 0x1002641a
jmp 0x10026539
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1002654c
cmp esi, 0x1fffffff
jae 0x1002654c
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 0x1002654c
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 0x1002653c
sub ebx, dword [ebp - 0x24]
cmp ebx, dword [ecx]
jb 0x1002653c
xor edx, edx
inc edx
mov eax, edx
cmp dword [ebp - 0x10], edx
jbe 0x100264fa
cmp ebx, dword [ecx + eax*8]
jb 0x100264fa
inc eax
cmp eax, dword [ebp - 0x10]
jb 0x100264ef
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 0x10026337