Function at 0x428910
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
push edi
test edx, edx
je 0x42892a
cmp edx, 0x40
jb 0x428948
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x428dc0
test edx, edx
je 0x42895a
mov eax, dword [ecx + 0x3c]
add eax, 0xf8
cmp edx, eax
jae 0x42895a
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ebp, dword [ecx + 0x3c]
add ebp, ecx
mov dword [esp + 0x28], ebp
cmp dword [ebp], 0x4550
jne 0x428dc0
mov eax, 0x14c
cmp word [ebp + 4], ax
jne 0x428dc0
mov ebx, dword [ebp + 0x38]
test bl, 1
jne 0x428dc0
movzx eax, word [ebp + 0x14]
movzx edi, word [ebp + 6]
add eax, 0x24
test edi, edi
je 0x4289bd
add eax, ebp
nop dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
test ecx, ecx
jne 0x4289ae
lea ecx, [edx + ebx]
jmp 0x4289b0
add ecx, edx
cmp ecx, esi
cmova esi, ecx
add eax, 0x28
sub edi, 1
jne 0x4289a0
mov edi, dword [ebp + 0x50]
lea ecx, [ebx - 1]
dec edi
lea eax, [ebx - 1]
not ecx
add edi, ebx
add eax, esi
and edi, ecx
and eax, ecx
cmp edi, eax
jne 0x428dc0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push edi
push dword [ebp + 0x34]
call esi
mov dword [esp + 0x18], eax
test eax, eax
jne 0x428a1b
push 4
push 0x3000
push edi
push eax
call esi
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
jne 0x428a1d
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edi, eax
push 0x44
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
jne 0x428a57
push 0x8000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0
push 4
push 8
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [ebx + 0xc], eax
mov dword [ebx], edi
movzx eax, word [ebp + 0x16]
shr eax, 0xd
and eax, 1
mov dword [ebx + 0x20], 0x4288a0
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x24], 0x4288c0
mov eax, dword [ebp + 0x38]
mov dword [ebx + 0x40], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x428acb
cmp eax, dword [ebp + 0x54]
jae 0x428acb
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, ebx
call fcn.00428f50
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 4
push 0x1000
push dword [ebp + 0x54]
push edi
call esi
push dword [ebp + 0x54]
mov edi, dword [esp + 0x24]
mov esi, eax
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi + 0x3c]
add esp, 0xc
mov ecx, dword [esp + 0x18]
add eax, esi
mov dword [ebx + 4], eax
mov dword [esp + 0x24], 0
mov dword [eax + 0x34], ecx
xor ecx, ecx
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [esp + 0x14], edx
movzx edi, word [eax + 0x14]
add edi, 0x24
cmp cx, word [eax + 6]
jae 0x428bdd
add edi, eax
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x428b66
mov esi, dword [ebp + 0x38]
test esi, esi
jle 0x428bc2
push dword [ebx + 0x38]
mov eax, dword [edi]
push 4
push 0x1000
add eax, edx
push esi
push eax
mov eax, dword [ebx + 0x20]
call eax
add esp, 0x14
test eax, eax
je 0x428aba
mov eax, dword [edi]
add eax, dword [esp + 0x14]
push esi
push 0
push eax
mov dword [edi - 4], eax
call sub.VCRUNTIME140.dll_memset
jmp 0x428bbb
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x428b7b
mov eax, dword [edi + 8]
add eax, ecx
cmp edx, eax
jb 0x428ab2
push dword [ebx + 0x38]
mov eax, dword [edi]
add eax, dword [esp + 0x18]
push 4
push 0x1000
push ecx
push eax
mov eax, dword [ebx + 0x20]
call eax
add esp, 0x14
test eax, eax
je 0x428aba
push dword [edi + 4]
mov eax, dword [edi + 8]
mov esi, dword [edi]
add eax, dword [esp + 0x24]
add esi, dword [esp + 0x18]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov ebp, dword [esp + 0x34]
mov dword [edi - 4], esi
mov edx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [ebx + 4]
add edi, 0x28
mov esi, dword [esp + 0x24]
inc esi
mov dword [esp + 0x24], esi
movzx eax, word [eax + 6]
cmp esi, eax
jl 0x428b20
mov edi, dword [ebx + 4]
mov eax, dword [edi + 0x34]
sub eax, dword [ebp + 0x34]
mov dword [esp + 0x24], eax
je 0x428c81
cmp dword [edi + 0xa4], 0
mov ecx, dword [ebx]
mov dword [esp + 0x20], ecx
jne 0x428c06
xor eax, eax
jmp 0x428c86
mov edi, dword [edi + 0xa0]
add edi, ecx
mov eax, dword [edi]
test eax, eax
je 0x428c81
lea ebp, [eax + ecx]
xor esi, esi
mov eax, dword [edi + 4]
lea edx, [edi + 8]
sub eax, 8
test eax, 0xfffffffe
jbe 0x428c5f
mov ebx, dword [esp + 0x24]
nop dword [eax]
movzx eax, word [edx]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x428c4b
and eax, 0xfff
add dword [eax + ebp], ebx
mov eax, dword [edi + 4]
inc esi
sub eax, 8
add edx, 2
shr eax, 1
cmp esi, eax
jb 0x428c30
mov ebx, dword [esp + 0x2c]
push dword [ebx + 0x40]
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
add edi, dword [edi + 4]
mov ecx, dword [esp + 0x20]
mov eax, dword [edi]
test eax, eax
jne 0x428c14
mov ebp, dword [esp + 0x28]
mov eax, 1
mov ecx, ebx
mov dword [ebx + 0x1c], eax
call fcn.00428580
test eax, eax
je 0x428aba
mov ecx, ebx
call fcn.00428420
test eax, eax
je 0x428aba
mov eax, dword [0x4faae0]
xor ecx, ecx
cdq
cmp dword [ebp + 0x34], eax
jne 0x428cb8
cmp ecx, edx
je 0x428ce6
mov eax, dword [ebx + 4]
mov edi, dword [ebx]
mov esi, dword [eax + 0xc0]
test esi, esi
je 0x428ce6
mov esi, dword [esi + edi + 0xc]
test esi, esi
je 0x428ce6
mov eax, dword [esi]
test eax, eax
je 0x428ce6
push 0
push 1
push edi
call eax
mov eax, dword [esi + 4]
lea esi, [esi + 4]
test eax, eax
jne 0x428cd5
mov edx, dword [ebx + 4]
mov esi, dword [edx + 0x28]
test esi, esi
je 0x428daf
cmp dword [ebx + 0x18], 0
je 0x428d9c
cmp byte [esp + 0x4c], 0
je 0x428d8b
mov eax, dword fs:[0x30]
mov ecx, dword [ebx]
mov dword [0x4fb604], ecx
mov edi, dword [eax + 0xa0]
mov eax, dword [edx + 0x50]
add eax, ecx
push edi
mov dword [0x4fb600], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0x428310
push str.RtlPcToFileHeader
push 0x4ced44
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call sym.AutoHotkey.exe_MinHookEnable
add esp, 0xc
mov dword [0x4fb5fc], eax
mov eax, dword [esp + 0x18]
push ebx
push 1
push eax
add eax, esi
call eax
push dword [0x4fb5fc]
mov esi, eax
call sym.AutoHotkey.exe_MinHookDisable
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x428d8b
push 0x45a
jmp 0x428ab4
mov dword [ebx + 0x14], 1
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x18]
add eax, esi
mov dword [ebx + 0x3c], eax
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov dword [ebx + 0x3c], 0
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret