Function at 0x48654b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [ebp + 0x10], 0
jne 0x48655e
xor eax, eax
jmp 0x48679b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
push 0x40
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x486584
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
je 0x48658b
xor eax, eax
jmp 0x48679b
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x14], edx
push 0xf8
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x4865b6
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 0x4550
je 0x4865bd
xor eax, eax
jmp 0x48679b
mov edx, dword [ebp - 0x14]
xor eax, eax
mov ax, word [edx + 0x14]
cmp eax, 0xe0
jne 0x4865de
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dx, word [ecx + 0x18]
cmp edx, 0x10b
je 0x4865e5
xor eax, eax
jmp 0x48679b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cx, word [eax + 6]
cmp ecx, 1
jge 0x4865fa
xor eax, eax
jmp 0x48679b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x49461c], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x80]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x48662c
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
jmp 0x486633
xor eax, eax
jmp 0x48679b
mov edx, 1
test edx, edx
je 0x486799
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x486657
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc], 0
jne 0x486657
jmp 0x486799
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
add eax, dword [0x49461c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x441294
mov edx, dword [ebp - 0xc]
push edx
call fcn.0048bfa0
add esp, 0xc
test eax, eax
jne 0x486694
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x4866a9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
jmp 0x4866b5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 8], 0
je 0x48678b
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0
je 0x48678b
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], 0x80000000
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
and edx, dword [ebp - 0x24]
test edx, edx
je 0x4866f7
jmp 0x48676a
cmp dword [ebp - 8], 0
je 0x48676a
push 0x4412a4
mov eax, dword [ebp - 0x10]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x48676a
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
cmp edx, dword [0x494624]
jne 0x48676a
cmp dword [0x4926b8], 0
jne 0x486739
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004857c3
add esp, 8
cmp dword [0x4926bc], 0
je 0x48676a
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x30]
push eax
push 4
push 0x494618
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x20], 0
jne 0x486774
xor eax, eax
jmp 0x48679b
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 4
mov dword [ebp - 0x1c], ecx
jmp 0x4866cb
mov edx, dword [ebp - 4]
add edx, 0x14
mov dword [ebp - 4], edx
jmp 0x486633
xor eax, eax
mov esp, ebp
pop ebp
ret