Function at 0x4093c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
test eax, eax
je 0x4093d7
mov dword [edi + 8], eax
jmp 0x4093da
mov eax, dword [edi + 8]
test eax, eax
jne 0x4093ec
mov eax, 0xc0000141
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409632
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], ecx
cmp dword [ecx], 0x4550
jne 0x409632
mov eax, 0x20b
cmp word [ecx + 0x18], ax
jne 0x409433
mov byte [edi + 0xd], 1
mov esi, 0x108
mov eax, dword [ecx + 0x30]
mov dword [edi + 0x20], eax
mov eax, dword [ecx + 0x34]
mov dword [edi + 0x24], eax
jmp 0x409449
mov byte [edi + 0xd], 0
mov esi, 0xf8
mov eax, dword [ecx + 0x34]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0
mov eax, dword [ecx + 0x50]
add esi, ecx
mov dword [edi + 0x28], eax
mov eax, dword [ecx + 0x54]
mov dword [edi + 0x30], eax
mov eax, dword [ecx + 0x28]
mov dword [edi + 0x2c], eax
movzx eax, word [ecx + 0x5c]
mov dword [edi + 0x3c], eax
mov ax, word [ecx + 0x16]
shr ax, 0xd
not al
and al, 1
cmp byte [edi + 0xd], 0
mov byte [edi + 0xe], al
lea eax, [ecx + 0xf8]
jne 0x409485
lea eax, [ecx + 0xe8]
mov eax, dword [eax]
test eax, eax
jne 0x4095e6
xor cl, cl
mov byte [edi + 0xf], cl
test cl, cl
je 0x4095a9
sub eax, dword [edi + 8]
lea ebx, [edi + 0xc0]
add eax, 0x10
mov dword [edi + 0x40], eax
lea eax, [edi + 0x90]
cmp ebx, eax
je 0x4094ca
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4094bf
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.00402710
cmp dword [ebx + 0x20], 0
lea eax, [ebx + 0x20]
jne 0x409506
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x4095a9
lea eax, [ebx + 0x20]
push eax
push 0x493f74
push 1
push 0
push 0x493f54
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4095a9
lea eax, [ebx + 0x20]
cmp dword [ebx + 0x24], 0
lea ecx, [ebx + 0x24]
jne 0x409587
cmp dword [ebx + 0x14], 8
mov edx, ebx
mov eax, dword [eax]
mov dword [ebp + 8], eax
jb 0x40951e
mov edx, dword [ebx]
mov eax, dword [eax]
push ecx
push 0x493f44
push 0
push edx
push dword [ebp + 8]
call dword [eax + 0x10]
cmp eax, 0x80131110
jne 0x409580
mov eax, 0x13
mov dword [ebp - 0xc], 4
mov word [ebp - 0x14], ax
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0x20]
push edx
push 0x493f64
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
js 0x4095a9
cmp dword [ebx + 0x14], 8
mov edx, ebx
mov eax, dword [ebx + 0x20]
mov dword [ebp + 8], eax
jb 0x40956c
mov edx, dword [ebx]
mov eax, dword [eax]
lea ecx, [ebx + 0x24]
push ecx
push 0x493f44
push 0
push edx
push dword [ebp + 8]
call dword [eax + 0x10]
test eax, eax
js 0x4095a9
lea ecx, [ebx + 0x24]
cmp dword [ebx + 0x28], 0
jne 0x4095a1
mov eax, dword [ecx]
lea ecx, [ebx + 0x28]
push ecx
push 0x493f84
push eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
js 0x4095a9
push ecx
mov ecx, ebx
call fcn.00412800
mov eax, dword [edi + 0x14]
xor ecx, ecx
xor edx, edx
mov dword [ebp + 8], ecx
cmp dx, word [eax + 6]
jae 0x409627
nop dword [eax]
mov eax, dword [edi + 0x48]
cmp dword [edi + 0x4c], eax
je 0x409608
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [eax + 0x20], xmm0
add dword [edi + 0x48], 0x28
jmp 0x409615
push ecx
push eax
mov ecx, edi
call fcn.00409640
test eax, eax
je 0x40948f
test byte [eax + 0x10], 1
je 0x40948f
mov cl, 1
jmp 0x409491
push esi
push eax
lea ecx, [edi + 0x44]
call fcn.00409930
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x14]
inc ecx
add esi, 0x28
mov dword [ebp + 8], ecx
movzx eax, word [eax + 6]
cmp ecx, eax
jl 0x4095c0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov eax, 0xc000007b
pop ebx
mov esp, ebp
pop ebp
ret 4