Function at 0x6d561d51
Capabilities:
Parse pe header

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x1cc
push ebx
push edi
xor edi, edi
push 4
mov ebx, ecx
mov dword [ebp + 0x6c], edi
call fcn.6d56119a
cmp eax, edi
mov dword [ebx + 0x82c], eax
jne 0x6d561db5
push 5
mov ecx, ebx
call fcn.6d56119a
cmp eax, edi
mov dword [ebx + 0x830], eax
jne 0x6d561db5
push 0x20
push 0x6d513f14
push dword [ebp + 0x7c]
call fcn.6d56accc
add esp, 0xc
cmp eax, edi
mov dword [ebp + 0x6c], eax
jne 0x6d561db5
push dword [ebp + 0x7c]
mov ecx, ebx
push 4
call fcn.6d5611b5
xor al, al
jmp 0x6d5620af
push esi
mov esi, dword [ebp + 0x6c]
lea eax, [ebp - 0x60]
push eax
push 0x40
push edi
push esi
mov ecx, ebx
call fcn.6d56117d
test al, al
je 0x6d562090
cmp esi, edi
je 0x6d561dfc
cmp word [ebp - 0x60], 0x4944
jne 0x6d561dfc
push esi
call dword [sym.imp.msvcrt.dll_fclose]
mov eax, dword [ebp - 0x58]
pop ecx
push dword [ebp + 0x7c]
mov ecx, ebx
mov dword [ebx + 0xc60], eax
call fcn.6d561b49
jmp 0x6d5620ae
push dword [ebp + 0x7c]
call dword [sym.imp.msvcrt.dll__wcsdup]
cmp eax, edi
pop ecx
mov dword [ebx + 0x850], eax
jne 0x6d561e20
push edi
push 2
mov ecx, ebx
call fcn.6d5611b5
push esi
jmp 0x6d5620a6
lea esi, [ebx + 0xa54]
push esi
lea ecx, [ebx + 0x854]
push ecx
push edi
push edi
push eax
call dword [sym.imp.msvcrt.dll__wsplitpath]
add esp, 0x14
cmp word [esi], di
je 0x6d561e52
lea eax, [ebx + 0xa56]
cmp word [eax], di
je 0x6d561e52
mov dword [ebx + 0xc54], eax
jmp 0x6d561e58
mov dword [ebx + 0xc54], edi
cmp word [ebp - 0x60], 0x5a4d
jne 0x6d562090
cmp dword [ebp - 0x24], edi
jle 0x6d562090
lea eax, [ebp - 0x158]
push eax
push 0xf8
push dword [ebp - 0x24]
mov ecx, ebx
push dword [ebp + 0x6c]
call fcn.6d56117d
test al, al
je 0x6d562090
cmp dword [ebp - 0x158], 0x4550
jne 0x6d562090
movzx eax, word [ebp - 0x140]
cmp eax, 0x10b
je 0x6d561ede
cmp eax, 0x20b
jne 0x6d562090
cmp dword [ebp - 0xd4], 6
mov eax, dword [ebp - 0x108]
mov dword [ebx + 0xc5c], eax
jb 0x6d562097
mov eax, dword [ebp - 0xa0]
mov edi, dword [ebp - 0x9c]
jmp 0x6d561f03
cmp dword [ebp - 0xe4], 6
mov eax, dword [ebp - 0x108]
mov dword [ebx + 0xc5c], eax
jb 0x6d562097
mov eax, dword [ebp - 0xb0]
mov edi, dword [ebp - 0xac]
test eax, eax
mov dword [ebp + 0x64], eax
je 0x6d562097
test edi, edi
je 0x6d562097
movzx eax, word [ebp - 0x144]
mov ecx, dword [ebp - 0x24]
and dword [ebp + 0x68], 0
lea esi, [eax + ecx + 0x18]
movzx eax, word [ebp - 0x152]
test eax, eax
mov dword [ebp + 0x60], eax
jbe 0x6d561f6e
lea eax, [ebp - 0x20]
push eax
push 0x28
push esi
push dword [ebp + 0x6c]
mov ecx, ebx
call fcn.6d56117d
test al, al
je 0x6d561f6e
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x64]
add esi, 0x28
cmp ecx, eax
ja 0x6d561f63
mov edx, dword [ebp - 0x10]
add edx, ecx
add eax, edi
cmp edx, eax
jae 0x6d561f6e
inc dword [ebp + 0x68]
mov eax, dword [ebp + 0x68]
cmp eax, dword [ebp + 0x60]
jb 0x6d561f36
mov eax, dword [ebp + 0x60]
cmp dword [ebp + 0x68], eax
je 0x6d562090
mov eax, edi
push 0x1c
xor edx, edx
pop edi
div edi
mov esi, dword [ebp - 0xc]
sub esi, dword [ebp - 0x14]
xor ecx, ecx
add esi, dword [ebp + 0x64]
mov dword [ebp + 0x30], ecx
mov dword [ebp + 0x4c], ecx
mov dword [ebp + 0x68], ecx
cmp eax, ecx
mov dword [ebp + 0x5c], eax
jbe 0x6d561ffd
push 0
lea eax, [ebp + 8]
push eax
push 0x1c
push dword [ebp + 0x64]
mov ecx, ebx
push esi
push dword [ebp + 0x6c]
call fcn.6d5610e7
test al, al
je 0x6d562090
add dword [ebp + 0x64], 0x1c
lea eax, [ebp + 8]
push eax
add esi, 0x1c
push 1
mov ecx, ebx
mov dword [ebp + 0x60], esi
call fcn.6d561521
cmp dword [ebp + 0x14], 2
jne 0x6d561fde
lea edi, [ebp + 0x24]
jmp 0x6d561fe7
cmp dword [ebp + 0x14], 4
jne 0x6d561ff2
lea edi, [ebp + 0x40]
push 7
lea esi, [ebp + 8]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x60]
inc dword [ebp + 0x68]
mov eax, dword [ebp + 0x68]
cmp eax, dword [ebp + 0x5c]
jb 0x6d561f9e
mov ecx, dword [ebp + 0x6c]
and byte [ebp + 0x73], 0
cmp dword [ebp + 0x30], 0
mov dword [ebx + 0x84c], ecx
je 0x6d562036
mov eax, dword [ebp + 0x34]
mov dword [ebx + 0xc78], eax
mov eax, dword [ebp + 0x38]
mov dword [ebx + 0xc7c], eax
mov eax, dword [ebp + 0x3c]
mov byte [ebp + 0x73], 1
mov byte [ebx + 0xc74], 1
mov dword [ebx + 0xc80], eax
mov eax, dword [ebp - 0x142]
shr eax, 9
and al, 1
mov byte [ebx + 0xc58], al
je 0x6d562079
cmp dword [ebp + 0x4c], 0
je 0x6d562079
push dword [ebp + 0x50]
mov eax, dword [ebp - 0x150]
push dword [ebp + 0x54]
mov dword [ebx + 0xc60], eax
push dword [ebp + 0x58]
mov eax, dword [ebp + 0x44]
push ecx
mov ecx, ebx
mov byte [ebp + 0x73], 1
mov dword [ebx + 0xc64], eax
call fcn.6d561620
cmp byte [ebp + 0x73], 0
jne 0x6d56208b
push dword [ebp + 0x7c]
mov ecx, ebx
push 0x13
call fcn.6d5611b5
mov al, byte [ebp + 0x73]
jmp 0x6d5620ae
push dword [ebp + 0x7c]
push 0x11
jmp 0x6d56209c
push dword [ebp + 0x7c]
push 0x13
mov ecx, ebx
call fcn.6d5611b5
push dword [ebp + 0x6c]
call fcn.6d5610d9
pop ecx
xor al, al
pop esi
pop edi
pop ebx
add ebp, 0x74
leave
ret 4