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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push edi
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jg 0x407525
mov eax, dword [ebp + 0x10]
jmp 0x407783
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x43]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x24], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x6c], 0x51
mov byte [ebp - 0x6b], 0x57
mov byte [ebp - 0x6a], 0x45
mov byte [ebp - 0x69], 0x52
mov byte [ebp - 0x68], 0x54
mov byte [ebp - 0x67], 0x59
mov byte [ebp - 0x66], 0x55
mov byte [ebp - 0x65], 0x49
mov byte [ebp - 0x64], 0x4f
mov byte [ebp - 0x63], 0x50
xor ecx, ecx
mov byte [ebp - 0x62], cl
mov byte [ebp - 0x5c], 0x5a
mov byte [ebp - 0x5b], 0x58
mov byte [ebp - 0x5a], 0x43
mov byte [ebp - 0x59], 0x56
mov byte [ebp - 0x58], 0x4e
mov byte [ebp - 0x57], 0x48
mov byte [ebp - 0x56], 0x4a
mov byte [ebp - 0x55], 0x4b
mov byte [ebp - 0x54], 0x4c
mov byte [ebp - 0x53], 0x4d
xor edx, edx
mov byte [ebp - 0x52], dl
mov dword [ebp - 0x50], 1
mov eax, 1
test eax, eax
je 0x407780
push 0x40d5dc
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00408bc0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4075ec
jmp 0x407780
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x48]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x7c]
add ecx, eax
mov edx, dword [ebp + 0x14]
sub edx, 2
cmp ecx, edx
jb 0x407615
jmp 0x407780
push 0x20
push 0
lea eax, [ebp - 0x44]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0x18]
and ecx, 0xff
test ecx, ecx
je 0x407655
mov edx, dword [ebp - 0x50]
mov al, byte [ebp + edx - 0x6d]
mov byte [ebp - 0x80], al
movsx ecx, byte [ebp - 0x80]
push ecx
push 0x40d5e0
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x40767c
mov eax, dword [ebp - 0x50]
mov cl, byte [ebp + eax - 0x5d]
mov byte [ebp - 0x84], cl
movsx edx, byte [ebp - 0x84]
push edx
push 0x40d5e4
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0x20
push 0
lea ecx, [ebp - 0x24]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x24]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
cmp eax, 8
jbe 0x4076c0
lea eax, [ebp - 0x24]
push eax
call fcn.0040736a
add esp, 4
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x44]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
lea ecx, [ebp + eax - 0x44]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x40d5e8
lea edx, [ebp - 0x44]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov ecx, dword [0x40d4a4]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.0040738e
add esp, 8
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x60]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040745c
add esp, 0x10
mov ecx, dword [ebp - 0x60]
add ecx, dword [ebp - 0x74]
mov dword [ebp - 0x60], ecx
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x40d5ec
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, dword [ebp - 4]
add ecx, eax
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x50]
add edx, 1
mov dword [ebp - 0x50], edx
jmp 0x4075c0
mov eax, dword [ebp + 0x10]
pop edi
mov esp, ebp
pop ebp
ret