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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov byte [eax], 0x4d
mov byte [eax + 1], 0x5a
cmp word [eax], 0x5a4d
jne 0x405fce
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x405fce
mov edi, dword [0x414010]
and byte [ebp - 0x18], 0
and byte [ebp - 0x28], 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x24], 0x4b
mov byte [ebp - 0x23], 0x45
mov byte [ebp - 0x22], 0x52
mov byte [ebp - 0x21], 0x4e
mov byte [ebp - 0x20], 0x45
mov byte [ebp - 0x1f], 0x4c
mov byte [ebp - 0x1e], 0x33
mov byte [ebp - 0x1d], 0x32
mov byte [ebp - 0x1c], 0x2e
mov byte [ebp - 0x1b], 0x64
mov byte [ebp - 0x1a], 0x6c
mov byte [ebp - 0x19], 0x6c
mov byte [ebp - 0x34], 0x56
mov byte [ebp - 0x33], 0x69
mov byte [ebp - 0x32], 0x72
mov byte [ebp - 0x31], 0x74
mov byte [ebp - 0x30], 0x75
mov byte [ebp - 0x2f], 0x61
mov byte [ebp - 0x2e], 0x6c
mov byte [ebp - 0x2d], 0x41
mov byte [ebp - 0x2c], 0x6c
mov byte [ebp - 0x2b], 0x6c
mov byte [ebp - 0x2a], 0x6f
mov byte [ebp - 0x29], 0x63
call edi
push eax
call dword [0x414014]
push 4
push 0x2000
push dword [esi + 0x50]
mov dword [ebp - 4], eax
push dword [esi + 0x34]
call eax
mov ebx, eax
test ebx, ebx
jne 0x405e91
push 4
push 0x2000
push dword [esi + 0x50]
push eax
call dword [ebp - 4]
mov ebx, eax
test ebx, ebx
je 0x405fce
and byte [ebp - 0x36], 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x44], 0x47
mov byte [ebp - 0x43], 0x65
mov byte [ebp - 0x42], 0x74
mov byte [ebp - 0x41], 0x50
mov byte [ebp - 0x40], 0x72
mov byte [ebp - 0x3f], 0x6f
mov byte [ebp - 0x3e], 0x63
mov byte [ebp - 0x3d], 0x65
mov byte [ebp - 0x3c], 0x73
mov byte [ebp - 0x3b], 0x73
mov byte [ebp - 0x3a], 0x48
mov byte [ebp - 0x39], 0x65
mov byte [ebp - 0x38], 0x61
mov byte [ebp - 0x37], 0x70
call edi
push eax
call dword [0x414014]
and byte [ebp - 0xb], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x48
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x61
mov byte [ebp - 0x11], 0x70
mov byte [ebp - 0x10], 0x41
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x6c
mov byte [ebp - 0xd], 0x6f
mov byte [ebp - 0xc], 0x63
call edi
push eax
call dword [0x414014]
push 0x14
push 0
mov edi, eax
call dword [ebp - 8]
push eax
call edi
mov edi, eax
xor eax, eax
push 4
push 0x1000
mov dword [edi + 4], ebx
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
push dword [esi + 0x50]
push ebx
call dword [ebp - 4]
push 4
push 0x1000
push dword [esi + 0x54]
push ebx
call dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, dword [esi + 0x54]
push ecx
mov ecx, dword [0x41844c]
push eax
push dword [ebp - 4]
call fcn.00406953
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push esi
mov eax, dword [ecx + 0x3c]
push ecx
add eax, edx
mov dword [edi], eax
mov dword [eax + 0x34], ebx
call fcn.00405fdc
mov eax, ebx
add esp, 0xc
sub eax, dword [esi + 0x34]
je 0x405f99
push eax
push edi
call fcn.004062f4
pop ecx
pop ecx
push edi
call fcn.0040636e
test eax, eax
pop ecx
je 0x405fc7
push edi
call fcn.0040615b
mov eax, dword [edi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x405fd5
add eax, ebx
test eax, eax
je 0x405fc7
push 0
push 1
pop esi
push esi
push ebx
call eax
test eax, eax
jne 0x405fd2
push edi
call fcn.004065ec
pop ecx
xor eax, eax
jmp 0x405fd7
mov dword [edi + 0x10], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret