Function at 0x406440
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push 0x411454
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x14], 0x47
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0x11], 0x50
mov byte [ebp - 0x10], 0x72
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x63
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x73
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 0xa], 0x48
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x61
mov byte [ebp - 7], 0x70
mov byte [ebp - 6], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 8]
mov byte [edx], 0x4d
mov eax, dword [ebp + 8]
mov byte [eax + 1], 0x5a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
je 0x4064ca
xor eax, eax
jmp 0x406686
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x4550
je 0x4064e8
xor eax, eax
jmp 0x406686
push 4
push 0x2000
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x406532
push 4
push 0x2000
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x50]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x406532
xor eax, eax
jmp 0x406686
push 0x14
push 0
call dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x38]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
push 4
push 0x1000
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x1000
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x20]
add ecx, dword [edx + 0x54]
push ecx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov ecx, dword [0x42aa54]
call fcn.00407345
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
add eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x34], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040668a
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
sub eax, dword [edx + 0x34]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40660c
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00406a24
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.00406afc
add esp, 4
test eax, eax
jne 0x40661e
jmp 0x406684
mov ecx, dword [ebp - 4]
push ecx
call fcn.00406830
add esp, 4
mov edx, dword [ebp - 4]
mov eax, dword [edx]
cmp dword [eax + 0x28], 0
je 0x40666b
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0x28]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40664b
jmp 0x406682
push 0
push 1
mov ecx, dword [ebp - 0x38]
push ecx
call dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x406661
jmp 0x406680
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 1
mov eax, dword [ebp - 4]
jmp 0x406686
mov eax, dword [ebp - 4]
push eax
call fcn.00406e54
add esp, 4
xor eax, eax
jmp 0x406686
jmp 0x406670
jmp 0x406670
jmp 0x406670
mov esp, ebp
pop ebp
ret