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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
sub esp, 0x44
cmp word [eax], cx
je 0x405039
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x40504e
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [0x53b460]
push edi
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x4e52454b
mov dword [ebp - 0x20], 0x32334c45
mov dword [ebp - 0x1c], 0x6c6c642e
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x34], 0x74726956
mov dword [ebp - 0x30], 0x416c6175
mov dword [ebp - 0x2c], 0x636f6c6c
mov byte [ebp - 0x28], 0
call esi
push eax
call dword [0x53b480]
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x34]
push 4
push 0x2000
push ecx
push edx
mov dword [ebp - 4], eax
call eax
mov edi, eax
test edi, edi
jne 0x4050cc
mov eax, dword [ebx + 0x50]
push 4
push 0x2000
push eax
push edi
call dword [ebp - 4]
mov edi, eax
test edi, edi
je 0x4051e1
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x44], 0x50746547
mov dword [ebp - 0x40], 0x65636f72
mov dword [ebp - 0x3c], 0x65487373
mov word [ebp - 0x38], 0x7061
mov byte [ebp - 0x36], 0
call esi
push eax
call dword [0x53b480]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x14], 0x70616548
mov dword [ebp - 0x10], 0x6f6c6c41
mov word [ebp - 0xc], 0x63
call esi
push eax
call dword [0x53b480]
push 0x14
push 0
mov esi, eax
call dword [ebp - 8]
push eax
call esi
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x50]
push 0x1000
push edx
push edi
call dword [ebp - 4]
mov eax, dword [ebx + 0x54]
push 4
push 0x1000
push eax
push edi
call dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
add edx, dword [ebx + 0x54]
mov dword [ebp - 8], eax
push edx
push ecx
push eax
call fcn.00517e80
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 8]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.00404b20
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x40519d
push eax
mov eax, esi
call fcn.00404f90
add esp, 4
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
call fcn.00404db0
add esp, 0xc
test eax, eax
je 0x4051dc
push esi
call fcn.00404c30
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
add esp, 4
cmp eax, ebx
je 0x4051f1
add eax, edi
cmp eax, ebx
je 0x4051dc
push ebx
push 1
push edi
call eax
test eax, eax
jne 0x4051ea
call fcn.00405300
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
mov edi, dword [ebp - 4]
cmp edi, ebx
je 0x405223
cmp dword [ebp + 8], ebx
je 0x405223
lea eax, [ebp - 4]
push eax
push 0x40
push 8
mov dword [ebp - 4], ebx
mov ebx, dword [0x53b45c]
push edi
call ebx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
mov dword [edi], ecx
mov eax, dword [ebp - 4]
push eax
push 8
push edi
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret