Function at 0x4d96f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4ac
mov ecx, dword [ecx + 8]
cmp dword [0xad1124], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x8c], eax
jne 0x4d9abc
mov dword [ebp - 0x70], ecx
push 8
push 0x220
call fcn.00403b10
add esp, 8
test eax, eax
je 0x4d9adf
mov dword [ebp - 0x7c], 4
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x24], 0
push 0
push 8
call fcn.0053322c
cmp eax, 0xffffffff
je 0x4d9a6d
mov edi, eax
lea eax, [ebp - 0x4b4]
push 0x424
push 0
push eax
call fcn.0053b950
add esp, 0xc
mov dword [ebp - 0x4b8], 0x428
lea eax, [ebp - 0x4b8]
push eax
push edi
call fcn.005333bc
cmp eax, 1
jne 0x4d9a67
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x1c], edi
jmp 0x4d97d6
mov edi, dword [ebp - 0x1c]
nop dword [eax + eax]
lea eax, [ebp - 0x4b8]
push eax
push edi
call fcn.005333c4
cmp eax, 1
jne 0x4d9a67
mov ecx, 0x208
xor eax, eax
nop dword [eax]
cmp word [ebp + eax*2 - 0x298], 0
je 0x4d97f6
inc eax
add ecx, 0xfffffffe
jne 0x4d97e0
mov eax, 0x104
push eax
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.004bbc90
add esp, 0xc
mov ebx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x5c]
mov edx, ebx
lea ecx, [ebp - 0x54]
push esi
call fcn.004d94d0
add esp, 4
cmp dword [ebp - 0x54], 0
je 0x4d9926
lea eax, [ebp - 0x50]
mov edi, dword [eax + 8]
movsd xmm0, qword [eax]
mov dword [ebp - 0x80], edi
movsd qword [ebp - 0x88], xmm0
mov eax, dword [ebp - 0x84]
push 0
push 0x40
push 0
push 0
push edi
mov dword [ebp - 0x20], eax
push eax
call fcn.004e0fd0
add esp, 0x18
test eax, eax
je 0x4d9910
cmp edx, 0x40
jb 0x4d9910
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x4d9910
mov eax, dword [eax + 0x3c]
push 0
push 0x78
push 0
mov dword [ebp - 0x18], eax
push eax
push edi
push dword [ebp - 0x20]
call fcn.004e0fd0
add esp, 0x18
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4d9910
xor eax, eax
add dword [ebp - 0x18], 0x78
setb cl
cmp edx, 0x78
jb 0x4d9910
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
jne 0x4d9910
mov edx, dword [ebp - 0x10]
movzx edx, word [edx + 0x18]
cmp edx, 0x10b
jne 0x4d9910
mov edx, dword [ebp - 0x10]
movzx edx, word [edx + 0x14]
cmp dx, 0x60
jb 0x4d9910
mov al, cl
movzx ecx, dx
mov edx, 0
add ecx, 0xffffffa0
adc edx, 0xffffffff
push edx
push ecx
push eax
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x20]
call fcn.004e0fd0
add esp, 0x18
test eax, eax
je 0x4d9910
mov ecx, dword [ebp - 0x10]
push dword [ecx + 0x74]
push edx
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.004e1e90
add esp, 0x10
cmp dword [ebp - 0x54], 0
je 0x4d9948
nop dword [eax]
push dword [ebp - 0x20]
call fcn.005334c4
push dword [ebp - 0x88]
call fcn.005331c4
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4d97c0
mov ecx, eax
not ecx
shr ecx, 0x1f
push ecx
push eax
push ebx
call fcn.00403b20
add esp, 0xc
jmp 0x4d97c0
mov eax, dword [ebp - 0x10]
movsd xmm0, qword [ebp - 0x64]
movsd xmm1, qword [ebp - 0x5c]
mov edi, dword [eax + 0x34]
mov eax, dword [ebp - 0x4a4]
movsd qword [ebp - 0x4c], xmm1
movsd qword [ebp - 0x54], xmm0
mov dword [ebp - 0x10], eax
push 4
push 8
call fcn.00403b10
add esp, 8
test eax, eax
je 0x4d9af0
mov ecx, dword [ebp - 0x4a0]
lea edx, [ebp - 0x57]
mov dword [eax], edi
mov dword [ebp - 0x6c], eax
mov dword [eax + 4], ecx
movzx eax, word [edx]
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
movzx eax, byte [edx + 2]
mov byte [ebp - 0x12], al
movzx eax, byte [ebp - 0x58]
mov byte [ebp - 0x18], al
push dword [ebp - 0x20]
call fcn.005334c4
push dword [ebp - 0x88]
call fcn.005331c4
movzx eax, byte [ebp - 0x18]
cmp al, 2
je 0x4d97b8
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], esi
mov byte [ebp - 0x48], al
movzx eax, word [ebp - 0x14]
lea ecx, [ebp - 0x50]
sub edx, edi
mov word [ecx + 9], ax
movzx eax, byte [ebp - 0x12]
mov byte [ecx + 0xb], al
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x40], 1
cmp edx, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 1
jne 0x4d9a22
lea ecx, [ebp - 0x2c]
call fcn.0049a120
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
jmp 0x4d9a28
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
movsd xmm0, qword [ebp - 0x3c]
mov eax, edx
inc edx
mov dword [ebp - 0x30], ecx
shl eax, 5
mov dword [ebp - 0x34], edx
movsd qword [ecx + eax + 0x18], xmm0
movsd xmm0, qword [ebp - 0x44]
movsd qword [ecx + eax + 0x10], xmm0
movsd xmm0, qword [ebp - 0x54]
movsd xmm1, qword [ebp - 0x4c]
movsd qword [ecx + eax + 8], xmm1
movsd qword [ecx + eax], xmm0
mov dword [ebp - 0x24], edx
jmp 0x4d97c0
push edi
call fcn.005331c4
mov eax, dword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x7c]
mov ecx, dword [ebp - 0x74]
movsd xmm0, qword [ebp - 0x2c]
mov dword [ebp - 0x4b0], eax
mov dword [ebp - 0x4a4], ecx
movsd qword [ebp - 0x4ac], xmm1
movsd qword [0xad1120], xmm0
mov ecx, dword [ebp - 0x70]
movsd xmm0, qword [ebp - 0x4b0]
movsd xmm1, qword [ebp - 0x4a8]
movsd qword [0xad1128], xmm0
movsd qword [0xad1130], xmm1
xor eax, eax
sub ecx, 1
cmovb ecx, eax
lea edx, [ebp - 0x90]
push 0xad1120
call fcn.004d9b80
add esp, 0x4b0
pop esi
pop edi
pop ebx
pop ebp
ret
push 8
push 0x220
call fcn.00506bc0
add esp, 8
ud2
push 4
push 8
call fcn.00506bc0
add esp, 8
ud2