Function at 0x6d52b2ae
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [edi + 0x4e8], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
je 0x6d52b2d4
xor eax, eax
inc eax
jmp 0x6d52b71f
push esi
push edi
push dword [ebp + 8]
call fcn.6d52b158
test eax, eax
je 0x6d52b367
cmp dword [edi + 0xe00], esi
je 0x6d52b31f
lea esi, [edi + 0x4ec]
cmp dword [esi], 0
je 0x6d52b306
cmp dword [edi + 0xde4], 5
je 0x6d52b6e6
push edi
call fcn.6d51d162
test eax, eax
je 0x6d52b31d
mov esi, dword [esi]
mov eax, dword [edi + 0x500]
jmp 0x6d52b3c7
xor esi, esi
cmp dword [edi + 0xde4], esi
je 0x6d52b367
push esi
call fcn.6d5288ea
xor eax, eax
cmp dword [0x6d580174], 2
push esi
push esi
sete al
push 3
push esi
lea eax, [eax*4 + 3]
push eax
push 0x80000000
push dword [edi + 0xa4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 1
mov dword [ebp - 8], eax
call fcn.6d5288ea
cmp dword [ebp - 8], 0xffffffff
jne 0x6d52b36e
xor eax, eax
jmp 0x6d52b71f
push dword [ebp - 8]
call fcn.6d52368d
cmp eax, esi
mov dword [ebp - 4], eax
je 0x6d52b6e6
mov ecx, eax
xor eax, eax
mov ax, word [ecx]
cmp ax, 0x5a4d
mov dword [ebp + 8], eax
jne 0x6d52b3fe
mov eax, dword [ecx + 0x3c]
add eax, ecx
add eax, 0x18
mov dx, word [eax]
cmp dx, 0x10b
jne 0x6d52b3ad
mov esi, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
add esi, ecx
jmp 0x6d52b3c7
cmp dx, 0x20b
jne 0x6d52b6e6
mov esi, dword [eax + 0x88]
add esi, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
test eax, eax
je 0x6d52b6e6
movzx ecx, word [edi + 0x1c]
sub ecx, 0x184
je 0x6d52b3fa
sub ecx, 0x7c
je 0x6d52b450
sub ecx, 0x84
je 0x6d52b3f6
sub ecx, 0x83e0
jne 0x6d52b6e6
jmp 0x6d52b450
push 0x28
jmp 0x6d52b452
push 0x14
jmp 0x6d52b452
cmp ax, 0x4944
jne 0x6d52b6e6
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0x20]
xor edx, edx
push 0x1c
pop ecx
div ecx
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
and dword [ebp + 0xc], 0
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*8]
lea ecx, [ecx + esi + 0x30]
test eax, eax
jbe 0x6d52b6e6
cmp dword [ecx + 0xc], 5
je 0x6d52b447
inc dword [ebp + 0xc]
add ecx, 0x1c
cmp dword [ebp + 0xc], eax
jb 0x6d52b431
jmp 0x6d52b6e6
mov esi, dword [ecx + 0x18]
add esi, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
push 0xc
xor edx, edx
pop ecx
div ecx
mov ebx, eax
test ebx, ebx
je 0x6d52b6e6
push 4
lea eax, [ebx + ebx*4]
shl eax, 2
push 0x1000
push eax
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [edi + 0x4e8], eax
je 0x6d52b6e6
movzx ecx, word [edi + 0x1c]
sub ecx, 0x184
je 0x6d52b5f3
sub ecx, 0x7c
je 0x6d52b592
sub ecx, 0x84
je 0x6d52b516
sub ecx, 0x83e0
jne 0x6d52b6cb
xor ecx, ecx
test ebx, ebx
mov dword [ebp + 0xc], ecx
jbe 0x6d52b6cb
lea edx, [ecx + ecx*2]
mov edx, dword [esi + edx*4]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4], edx
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + ecx*2]
mov edx, dword [esi + edx*4 + 4]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 4], edx
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + ecx*2]
mov edx, dword [esi + edx*4 + 8]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
and dword [eax + ecx*4 + 0xc], 0
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
and dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebp + 0xc]
inc ecx
cmp ecx, ebx
mov dword [ebp + 0xc], ecx
jb 0x6d52b4c2
jmp 0x6d52b6cb
xor ecx, ecx
test ebx, ebx
mov dword [ebp + 0xc], ecx
jbe 0x6d52b6cb
lea edx, [ecx + ecx*4]
mov edx, dword [esi + edx*8]
sub edx, dword [edi + 8]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4], edx
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + ecx*4]
mov edx, dword [esi + edx*8 + 8]
sub edx, dword [edi + 8]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 4], edx
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + ecx*4]
mov edx, dword [esi + edx*8 + 0x20]
sub edx, dword [edi + 8]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + ecx*4]
mov edx, dword [esi + edx*8 + 0x10]
sub edx, dword [edi + 8]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 0xc], edx
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + ecx*4]
mov edx, dword [esi + edx*8 + 0x18]
sub edx, dword [edi + 8]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 0x10], edx
mov ecx, dword [ebp + 0xc]
inc ecx
cmp ecx, ebx
mov dword [ebp + 0xc], ecx
jb 0x6d52b523
jmp 0x6d52b6cb
xor ecx, ecx
test ebx, ebx
mov dword [ebp + 0xc], ecx
jbe 0x6d52b6cb
lea edx, [ecx + ecx*2]
mov edx, dword [esi + edx*4]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4], edx
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + ecx*2]
mov edx, dword [esi + edx*4 + 4]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 4], edx
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + ecx*2]
mov edx, dword [esi + edx*4 + 8]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
and dword [eax + ecx*4 + 0xc], 0
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
and dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebp + 0xc]
inc ecx
cmp ecx, ebx
mov dword [ebp + 0xc], ecx
jb 0x6d52b59f
jmp 0x6d52b6cb
cmp word [ebp + 8], 0x4944
jne 0x6d52b659
xor ecx, ecx
test ebx, ebx
mov dword [ebp + 0xc], ecx
jbe 0x6d52b6cb
lea edx, [ecx + ecx*2]
mov edx, dword [esi + edx*4]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4], edx
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + ecx*2]
mov edx, dword [esi + edx*4 + 4]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 4], edx
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + ecx*2]
mov edx, dword [esi + edx*4 + 8]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
and dword [eax + ecx*4 + 0xc], 0
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
and dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebp + 0xc]
inc ecx
cmp ecx, ebx
mov dword [ebp + 0xc], ecx
jb 0x6d52b608
jmp 0x6d52b6cb
and dword [ebp + 0xc], 0
test ebx, ebx
jbe 0x6d52b6cb
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov edx, dword [ecx + esi]
sub edx, dword [edi + 8]
mov dword [ecx + eax], edx
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov edx, dword [ecx + esi + 4]
sub edx, dword [edi + 8]
mov dword [ecx + eax + 4], edx
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov edx, dword [ecx + esi + 0x10]
sub edx, dword [edi + 8]
mov dword [ecx + eax + 8], edx
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov edx, dword [ecx + esi + 8]
sub edx, dword [edi + 8]
mov dword [ecx + eax + 0xc], edx
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov edx, dword [ecx + esi + 0xc]
sub edx, dword [edi + 8]
mov dword [ecx + eax + 0x10], edx
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], ebx
jb 0x6d52b661
lea eax, [ebp + 0xc]
push eax
push 2
push dword [ebp - 0xc]
push dword [edi + 0x4e8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [edi + 0x4f4], ebx
lea esi, [edi + 0x4ec]
mov eax, dword [esi]
xor edi, edi
cmp eax, edi
je 0x6d52b6fc
push eax
call fcn.6d52288d
mov dword [esi], edi
cmp dword [ebp - 4], edi
je 0x6d52b70a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 8], edi
je 0x6d52b718
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ebx, edi
setne al
pop edi
pop esi
pop ebx
leave
ret 8