Function at 0x4119fb
Capabilities:
Parse pe header

Disassembly:
jmp 0x4227f0
push edi
mov edi, esp
sub esp, 0x4c
mov eax, dword [edi + 0x14]
mov dword [eax], 0
xor ecx, ecx
mov eax, dword [edi + 0xc]
push ebx
mov ebx, dword [edi + 8]
dec ebx
push 0x1c
mov word [eax], cx
lea eax, [edi - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
or eax, eax
jne 0x422824
xor eax, eax
pop ebx
mov esp, edi
pop edi
ret
push dword [edi + 0x1c]
push dword [edi + 0x18]
push dword [edi - 0x48]
call fcn.00411938
sub esp, 0xfffffff4
test eax, eax
je 0x42281d
mov ecx, dword [edi - 0x48]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x42281d
mov eax, dword [ecx + 0x3c]
test eax, eax
jle 0x42281d
lea edx, [eax + ecx]
cmp dword [eax + ecx], 0x4550
jne 0x42281d
movzx eax, word [edx + 0x14]
sub ebx, ecx
push ebp
xor ebp, ebp
push esi
movzx esi, word [edx + 6]
add edx, eax
xor eax, eax
test esi, esi
je 0x422889
lea ecx, [edx + 0x24]
mov edx, dword [ecx]
cmp ebx, edx
jb 0x422881
mov ebp, ebx
sub ebp, edx
cmp ebx, dword [ecx - 4]
jb 0x422889
inc eax
add ecx, 0x28
cmp eax, esi
jb 0x422872
cmp eax, esi
je 0x4228f6
inc eax
cmp byte [0x42d789], 0
mov dword [edi - 0xc], eax
jne 0x4228ba
cmp dword [0x42d784], 0
jne 0x4228f6
call fcn.00422230
mov dword [0x42d784], eax
or eax, eax
je 0x4228f6
mov byte [0x42d789], 1
jmp 0x4228bf
mov eax, dword [0x42d784]
push str.PDBOpenValidate5
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4228f6
mov ecx, esi
lea eax, [edi - 0x18]
push eax
push 0
push 0
lea eax, [edi - 0x30]
push eax
push 0
push 0
push 0
push dword [edi + 0x18]
call fcn.004118c0
call esi
sub esp, 0xffffffe0
or eax, eax
jne 0x4228ff
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, edi
pop edi
ret
mov ebx, dword [edi - 0x18]
mov dword [edi - 0x24], 0
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call fcn.004118c0
mov ecx, ebx
call esi
cmp eax, 0x1329141
jne 0x422a65
lea ecx, [edi - 0x20]
mov esi, dword [edi - 0x18]
push ecx
push 0x42a7d8
push 0
mov eax, dword [esi]
mov ebx, dword [eax + 0x1c]
mov ecx, ebx
call fcn.004118c0
mov ecx, esi
call ebx
or eax, eax
je 0x422a65
lea eax, [edi - 0x14]
mov ebx, dword [edi - 0x20]
push 0
push 0
push 0
mov esi, dword [ebx]
push eax
push ebp
push dword [edi - 0xc]
mov esi, dword [esi + 0x20]
mov ecx, esi
call fcn.004118c0
mov ecx, ebx
call esi
or eax, eax
je 0x422a52
lea eax, [edi - 8]
mov ebx, dword [edi - 0x14]
mov dword [edi - 8], 0
push eax
mov eax, dword [ebx]
mov esi, dword [eax + 0x68]
mov ecx, esi
call fcn.004118c0
mov ecx, ebx
call esi
test al, al
je 0x422a3f
mov eax, dword [edi - 8]
or eax, eax
je 0x422a3f
mov eax, dword [eax]
xor ebx, ebx
mov esi, dword [eax + 8]
mov ecx, esi
call fcn.004118c0
mov ecx, dword [edi - 8]
call esi
test eax, eax
je 0x422a1d
lea ebp, [ebp]
mov esi, dword [edi - 8]
lea ebx, [edi - 0x10]
lea eax, [edi - 0x28]
push 0
push ebx
mov ebx, dword [esi]
push eax
lea eax, [edi - 4]
push eax
mov ebx, dword [ebx + 0xc]
lea eax, [edi - 0x1c]
push eax
mov ecx, ebx
push 0
call fcn.004118c0
mov ecx, esi
call ebx
test al, al
je 0x422a2d
movzx ecx, word [edi - 4]
cmp ecx, dword [edi - 0xc]
jne 0x422a04
mov ecx, dword [edi - 0x1c]
cmp ecx, ebp
ja 0x422a04
mov eax, dword [edi - 0x28]
add eax, ecx
cmp ebp, eax
jb 0x422a82
mov ebx, dword [edi - 8]
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call fcn.004118c0
mov ecx, ebx
call esi
test eax, eax
jne 0x4229c0
xor ebx, ebx
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [edi - 8]
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call fcn.004118c0
mov ecx, ebx
call esi
mov ebx, dword [edi - 0x14]
mov eax, dword [ebx]
mov ebp, dword [eax + 0x40]
mov esi, ebp
call fcn.004118c0
mov ecx, ebx
call ebp
mov esi, dword [edi - 0x20]
mov eax, dword [esi]
mov ebx, dword [eax + 0x38]
mov ebp, ebx
call fcn.004118c0
mov ecx, esi
call ebx
mov ebx, dword [edi - 0x18]
mov edx, dword [ebx]
mov esi, dword [edx + 0x2c]
mov ecx, esi
call fcn.004118c0
mov ecx, ebx
call esi
mov eax, dword [edi - 0x24]
pop esi
pop ebp
pop ebx
mov esp, edi
pop edi
ret
mov eax, dword [edi - 0x10]
or eax, eax
je 0x422a2d
cmp eax, 0x1fffffff
jae 0x422a2d
shl eax, 3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi - 0xc], eax
or eax, eax
je 0x422a2d
mov ebx, dword [edi - 8]
push eax
lea eax, [edi - 0x10]
push eax
lea eax, [edi - 0x2c]
mov esi, dword [ebx]
push 0
push 0
push 0
mov esi, dword [esi + 0xc]
push eax
mov ecx, esi
call fcn.004118c0
mov ecx, ebx
call esi
mov ebx, dword [edi - 0xc]
or al, al
je 0x422a1d
sub ebp, dword [edi - 0x1c]
cmp ebp, dword [ebx]
jb 0x422a1d
mov eax, 1
mov esi, dword [edi - 0x10]
cmp esi, eax
jbe 0x422afa
mov ebx, ebx
cmp ebp, dword [ebx + eax*8]
jb 0x422afa
inc eax
cmp eax, esi
jb 0x422af0
mov ecx, dword [edi + 0x14]
mov eax, dword [ebx + eax*8 - 4]
mov ebx, dword [edi - 0x14]
and eax, 0xffffff
push 0
push 0
mov dword [ecx], eax
mov ebp, dword [ebx]
push 0
lea eax, [edi + 0x10]
push eax
push dword [edi + 0xc]
mov ebp, dword [ebp + 0x70]
push dword [edi - 0x2c]
mov esi, ebp
call fcn.004118c0
mov ecx, ebx
call ebp
mov ebx, dword [edi - 0xc]
test al, al
je 0x422a1d
mov dword [edi - 0x24], 1
jmp 0x422a1d