Function at 0x44d360
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
xor esi, esi
push edi
test ebp, ebp
je 0x44d376
cmp ebp, 0x40
jb 0x44d398
mov ecx, dword [esp + 0x2c]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x44d8cd
test ebp, ebp
je 0x44d3aa
mov eax, dword [ecx + 0x3c]
add eax, 0xf8
cmp ebp, eax
jae 0x44d3aa
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov edx, dword [ecx + 0x3c]
add edx, ecx
mov dword [esp + 0x10], edx
cmp dword [edx], 0x4550
jne 0x44d8cd
mov eax, 0x14c
cmp word [edx + 4], ax
jne 0x44d8cd
mov ebx, dword [edx + 0x38]
test bl, 1
jne 0x44d8cd
movzx eax, word [edx + 0x14]
movzx edi, word [edx + 6]
add eax, 0x24
test edi, edi
je 0x44d410
add edx, eax
nop dword [eax + eax]
mov eax, dword [edx + 4]
lea edx, [edx + 0x28]
test eax, eax
mov ecx, ebx
cmovne ecx, eax
add ecx, dword [edx - 0x28]
cmp ecx, esi
cmovbe ecx, esi
mov esi, ecx
sub edi, 1
jne 0x44d3f0
mov edx, dword [esp + 0x10]
lea ecx, [ebx - 1]
lea edi, [ebx - 1]
not ecx
add edi, dword [edx + 0x50]
lea eax, [ebx - 1]
add eax, esi
and edi, ecx
and eax, ecx
cmp edi, eax
jne 0x44d8cd
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x34]
push esi
push 4
push 0x3000
push edi
push dword [edx + 0x34]
call ebx
add esp, 0x14
mov dword [esp + 0x30], eax
test eax, eax
jne 0x44d478
push esi
push 4
push 0x3000
push edi
push eax
call ebx
mov edi, eax
add esp, 0x14
mov dword [esp + 0x30], edi
test edi, edi
jne 0x44d47c
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov edi, dword [esp + 0x30]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x44
push 8
mov dword [esp + 0x2c], eax
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x44d4bd
push esi
push 0x8000
push eax
push edi
call dword [esp + 0x48]
add esp, 0x10
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
push 0
push 4
push 8
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [ebx + 0xc], eax
mov dword [ebx], edi
mov edi, dword [esp + 0x10]
movzx eax, word [edi + 0x16]
shr eax, 0xd
and eax, 1
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x24], 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 [edi + 0x38]
mov dword [ebx + 0x40], eax
test ebp, ebp
je 0x44d523
push dword [edi + 0x54]
push ebp
call fcn.0044c9b0
add esp, 8
test eax, eax
je 0x44d63c
push esi
push 4
push 0x1000
push dword [edi + 0x54]
push dword [esp + 0x40]
call dword [esp + 0x48]
push dword [edi + 0x54]
mov esi, eax
push dword [esp + 0x44]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x4c]
xor edx, edx
mov ecx, dword [esp + 0x50]
add esp, 0x20
mov dword [esp + 0x18], 0
mov eax, dword [eax + 0x3c]
add eax, esi
mov dword [ebx + 4], eax
mov dword [eax + 0x34], ecx
mov ecx, dword [ebx + 4]
mov esi, dword [ebx]
mov dword [esp + 0x14], esi
movzx eax, word [ecx + 0x14]
add eax, 0x24
cmp dx, word [ecx + 6]
jae 0x44d6d7
lea edi, [eax + ecx]
mov edx, dword [edi + 4]
test edx, edx
jne 0x44d5ca
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x38]
test esi, esi
jle 0x44d610
push dword [ebx + 0x38]
mov eax, dword [edi]
add eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x20]
push 4
push 0x1000
push esi
push eax
call ecx
add esp, 0x14
test eax, eax
je 0x44d63c
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 0x44d60d
test ebp, ebp
je 0x44d5d7
mov eax, dword [edi + 8]
add eax, edx
cmp ebp, eax
jb 0x44d634
push dword [ebx + 0x38]
mov eax, dword [edi]
mov ecx, dword [ebx + 0x20]
add eax, esi
push 4
push 0x1000
push edx
push eax
call ecx
add esp, 0x14
test eax, eax
je 0x44d63c
push dword [edi + 4]
mov eax, dword [edi + 8]
mov esi, dword [edi]
add eax, dword [esp + 0x30]
add esi, dword [esp + 0x18]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov dword [edi - 4], esi
add esp, 0xc
mov ecx, dword [ebx + 4]
add edi, 0x28
mov edx, dword [esp + 0x18]
inc edx
mov dword [esp + 0x18], edx
movzx eax, word [ecx + 6]
cmp edx, eax
jge 0x44d6d3
mov esi, dword [esp + 0x14]
jmp 0x44d582
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx + 0x14], 0
je 0x44d653
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push 0
push 0
mov eax, dword [eax + 0x28]
push ecx
add eax, ecx
call eax
mov eax, dword [ebx + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x44d668
push eax
push 0
push dword [ebx + 0xc]
call edi
mov eax, dword [ebx + 8]
test eax, eax
je 0x44d69d
xor esi, esi
cmp dword [ebx + 0x10], esi
jle 0x44d695
mov eax, dword [ebx + 8]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x44d68f
push dword [ebx + 0x38]
mov eax, dword [ebx + 0x30]
push ecx
call eax
mov eax, dword [ebx + 8]
add esp, 8
inc esi
cmp esi, dword [ebx + 0x10]
jl 0x44d676
push eax
push 0
push dword [ebx + 0xc]
call edi
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, dword [ebx]
test eax, eax
je 0x44d6bf
push dword [ebx + 0x38]
push 0x8000
push 0
push eax
mov eax, dword [ebx + 0x24]
call eax
add esp, 0x10
push ebx
push 0
call dword [esp + 0x2c]
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov edi, dword [esp + 0x10]
mov eax, dword [ecx + 0x34]
sub eax, dword [edi + 0x34]
mov dword [esp + 0x14], eax
je 0x44d788
cmp dword [ecx + 0xa4], 0
jne 0x44d6f7
xor eax, eax
jmp 0x44d78d
mov edx, dword [ebx]
mov ecx, dword [ecx + 0xa0]
add ecx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ecx
mov eax, dword [ecx]
test eax, eax
je 0x44d788
nop
lea ebp, [eax + edx]
xor esi, esi
mov eax, dword [ecx + 4]
lea edi, [ecx + 4]
sub eax, 8
lea edx, [ecx + 8]
test eax, 0xfffffffe
jbe 0x44d75e
mov ebx, dword [esp + 0x14]
nop dword [eax]
movzx eax, word [edx]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x44d74b
and eax, 0xfff
add dword [eax + ebp], ebx
mov eax, dword [edi]
inc esi
sub eax, 8
add edx, 2
shr eax, 1
cmp esi, eax
jb 0x44d730
mov ebx, dword [esp + 0x1c]
mov esi, dword [ebx + 0x40]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ecx, dword [esp + 0x18]
add ecx, dword [edi]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
mov eax, dword [ecx]
test eax, eax
jne 0x44d710
mov edi, dword [esp + 0x10]
mov eax, 1
push ebx
mov dword [ebx + 0x1c], eax
call fcn.0044c670
add esp, 4
test eax, eax
je 0x44d63c
push ebx
call fcn.0044ca80
add esp, 4
test eax, eax
je 0x44d63c
mov eax, dword [0x5276ac]
xor ecx, ecx
cdq
cmp dword [edi + 0x34], eax
jne 0x44d7c3
cmp ecx, edx
je 0x44d7f1
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0xc0]
test esi, esi
je 0x44d7f1
mov edi, dword [ebx]
mov esi, dword [edi + esi + 0xc]
test esi, esi
je 0x44d7f1
mov eax, dword [esi]
test eax, eax
je 0x44d7f1
push 0
push 1
push edi
call eax
mov eax, dword [esi + 4]
lea esi, [esi + 4]
test eax, eax
jne 0x44d7e0
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0x28]
test esi, esi
je 0x44d8bc
cmp dword [ebx + 0x18], 0
je 0x44d8a9
cmp byte [esp + 0x4c], 0
je 0x44d898
mov eax, dword fs:[0x30]
mov edi, dword [eax + 0xa0]
mov eax, dword [ebx]
mov dword [0x622600], eax
mov eax, dword [ebx + 4]
push edi
mov eax, dword [eax + 0x50]
add eax, dword [ebx]
mov dword [0x622604], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0x44cbf0
push str.RtlPcToFileHeader
push 0x4f633c
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 [0x622608], eax
mov eax, dword [esp + 0x30]
push ebx
push 1
push eax
add eax, esi
call eax
push dword [0x622608]
mov esi, eax
call sym.AutoHotkey.exe_MinHookDisable
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x44d898
push 0x45a
jmp 0x44d636
pop edi
pop esi
pop ebp
mov dword [ebx + 0x14], 1
mov eax, ebx
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x30]
pop edi
add eax, esi
pop esi
mov dword [ebx + 0x3c], eax
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
mov dword [ebx + 0x3c], 0
mov eax, ebx
pop ebx
add esp, 0x18
ret
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret