Function at 0x4048e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b1d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov byte [ebp - 0x8c], 0
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0x8b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x64], 0x20000020
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x60]
push eax
push 0x40
lea ecx, [ebp - 0x54]
push ecx
push ebx
mov edi, dword [ebp + 8]
push edi
mov esi, dword [ebp + 0x18]
call esi
test eax, eax
je 0x40498b
cmp dword [ebp - 0x60], 0x40
jne 0x40498b
mov dword [ebp - 0x1bc], 1
xor eax, eax
cmp word [ebp - 0x54], 0x5a4d
sete al
mov byte [ebp - 0x1c4], al
test al, al
jne 0x4049b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c0], eax
push 0x434b10
lea eax, [ebp - 0x1c0]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov dword [ebp - 0x1bc], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1b8], eax
push 0x434b10
lea edx, [ebp - 0x1b8]
push edx
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x60]
push ecx
push 0xf8
lea edx, [ebp - 0x184]
push edx
mov eax, dword [ebp - 0x18]
add eax, ebx
push eax
push edi
call esi
test eax, eax
je 0x404a0d
cmp dword [ebp - 0x60], 0xf8
jne 0x404a0d
mov eax, 1
mov dword [ebp - 0x1cc], eax
cmp dword [ebp - 0x184], 0x4550
jne 0x404a34
cmp word [ebp - 0x180], 0x14c
jne 0x404a34
cmp word [ebp - 0x16c], 0x10b
jne 0x404a34
mov dword [ebp - 0x1d4], eax
jmp 0x404a5b
mov dword [ebp - 0x1cc], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c8], eax
push 0x434b10
lea ecx, [ebp - 0x1c8]
push ecx
call sub.MSVCRT.dll__CxxThrowException
mov dword [ebp - 0x1d4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1d0], eax
push 0x434b10
lea edx, [ebp - 0x1d0]
push edx
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x18]
lea ecx, [eax + ebx + 0xf8]
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x17e]
and eax, 0xffff
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x188], 0
cmp dword [ebp - 0x188], eax
jae 0x404b5c
lea edx, [ebp - 0x60]
push edx
push 0x28
lea eax, [ebp - 0x1b0]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
push edi
call esi
test eax, eax
je 0x404b1b
mov eax, 0x28
cmp dword [ebp - 0x60], eax
jne 0x404b1b
mov dword [ebp - 0x1dc], 1
add dword [ebp - 0x58], eax
mov ecx, 0xa
lea edi, [ebp - 0x8c]
lea esi, [ebp - 0x1b0]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x404b5c
mov ecx, dword [ebp - 0x18c]
and ecx, 0x20000020
cmp ecx, 0x20000020
jne 0x404b42
mov edx, dword [ebp - 0x1a4]
lea eax, [edx + ebx]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x1a0]
add eax, edx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1dc], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1d8], eax
push 0x434b10
lea edx, [ebp - 0x1d8]
push edx
call sub.MSVCRT.dll__CxxThrowException
inc dword [ebp - 0x188]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp + 0x18]
jmp 0x404a80
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret