Function at 0x4c7cc580
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7d62b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e4
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x118]
push esi
xor esi, esi
add eax, 8
cmp word [eax + 0x210], si
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x54], eax
jne 0x4c7cc5da
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x88], edi
je 0x4c7cc6c3
push 0x30
lea eax, [ebp - 0xbc]
push esi
push eax
mov dword [ebp - 0xc0], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xc0]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x4c7cc642
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4c7cc673
push 0x40e
jmp 0x4c7cc65a
cmp dword [ebp - 0xa0], esi
je 0x4c7cc690
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4c7cc673
push 0x419
push 0x4c785cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov ebx, dword [ebx + 8]
or dword [ebx + 0x6074], 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x9c]
test esi, esi
jne 0x4c7cc6e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4c7cc6c3
push 0x424
push 0x4c785cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov ebx, dword [ebx + 8]
or dword [ebx + 0x6074], 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0
push esi
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [ebp - 0x84], eax
jne 0x4c7cc740
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4c7cc723
push 0x433
push 0x4c785cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov ebx, dword [ebx + 8]
or dword [ebx + 0x6074], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp dword [edi + 0xe], 0xc
mov dword [ebp - 0x34], edi
je 0x4c7cc77b
movzx ecx, word [edi + 0x1c]
lea eax, [ecx - 1]
cmp eax, 0x1f
mov dword [ebp - 0x3c], 0
ja case.0x4c7cc795.2
movzx eax, byte [eax + 0x4c7cd97c]
jmp dword [eax*4 + 0x4c7cd96c]
movzx ecx, word [edi + 0x18]
lea eax, [ecx - 1]
cmp eax, 0x1f
mov dword [ebp - 0x3c], 1
ja case.0x4c7cc795.2
movzx edx, byte [eax + 0x4c7cd9a8]
jmp dword [edx*4 + 0x4c7cd99c]
mov ebx, 1
shl ebx, cl
add ebx, ebx
add ebx, ebx
jmp 0x4c7cc7cc
mov eax, dword [edi + 0x2e]
test eax, eax
jbe case.0x4c7cc795.1
lea ebx, [eax*4]
jmp 0x4c7cc7cc
xor ebx, ebx
cmp dword [edi + 0x1e], 3
setne bl
sub ebx, 1
and ebx, 0xc
jmp 0x4c7cc7cc
xor ebx, ebx
sub esi, dword [edi + 0xa]
mov dword [ebp - 0x40], ebx
lea ecx, [esi + ebx + 0x40]
push ecx
push 0x40
mov dword [ebp - 0x50], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 0x30], eax
je 0x4c7cd8be
xor edx, edx
cmp dword [ebp - 0x3c], edx
lea ecx, [eax + 0x28]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x28], ecx
je 0x4c7cc86f
movzx eax, word [edi + 0x18]
add eax, 0xffffffff
cmp eax, 0x1f
ja case.0x4c7cc810.1
movzx eax, byte [eax + 0x4c7cd9e4]
jmp dword [eax*4 + 0x4c7cd9c8]
mov word [ecx], dx
jmp case.0x4c7cc810.1
mov word [ecx], 1
jmp case.0x4c7cc810.1
mov word [ecx], 2
jmp case.0x4c7cc810.1
mov word [ecx], 4
jmp case.0x4c7cc810.1
mov word [ecx], 5
jmp case.0x4c7cc810.1
mov word [ecx], 7
mov word [ecx + 2], dx
movzx edx, word [edi + 0x12]
mov dword [ecx + 4], edx
movzx eax, word [edi + 0x14]
mov dword [ecx + 8], eax
movzx edx, word [edi + 0x18]
movzx eax, word [edi + 0x12]
imul edx, eax
add edx, 7
shr edx, 3
add edx, 3
shr edx, 2
add edx, edx
add edx, edx
mov dword [ecx + 0xc], edx
jmp 0x4c7cc8ea
movzx eax, word [edi + 0x1c]
add eax, 0xffffffff
cmp eax, 0x1f
ja case.0x4c7cc882.1
movzx eax, byte [eax + 0x4c7cda20]
jmp dword [eax*4 + 0x4c7cda04]
mov word [ecx], dx
jmp case.0x4c7cc882.1
mov word [ecx], 1
jmp case.0x4c7cc882.1
mov word [ecx], 2
jmp case.0x4c7cc882.1
mov word [ecx], 4
jmp case.0x4c7cc882.1
mov word [ecx], 5
jmp case.0x4c7cc882.1
mov word [ecx], 7
mov dx, word [edi + 0x1e]
mov word [ecx + 2], dx
mov eax, dword [edi + 0x12]
mov dword [ecx + 4], eax
mov edx, dword [edi + 0x16]
mov dword [ecx + 8], edx
movzx eax, word [edi + 0x1c]
imul eax, dword [edi + 0x12]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, eax
add eax, eax
mov dword [ecx + 0xc], eax
cmp dword [ebp - 0x3c], 0
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
lea esi, [ecx + 0x18]
je 0x4c7cc900
mov edx, edi
lea edi, [edx + 0x1a]
jmp 0x4c7cc906
mov edx, dword [ebp - 0x34]
add edi, 0x36
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 8]
test dword [eax + 0x304c], 0x8000
je 0x4c7cc9a2
mov eax, dword [ebp - 0x28]
movzx eax, word [eax]
cmp ax, 2
jbe 0x4c7cc9a2
cmp ax, 4
je 0x4c7cc934
cmp ax, 7
jne 0x4c7cc96a
mov eax, dword [ebp - 0x28]
cmp word [eax + 2], 3
jne 0x4c7cc96a
cmp ebx, 0xc
jae 0x4c7cc96a
mov edx, dword [ebp - 0x30]
mov eax, dword [ecx + 8]
or dword [eax + 0x6074], 8
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x28]
xor ebx, ebx
cmp dword [ebp - 0x3c], ebx
mov dword [eax + 0x10], ebx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x4c], eax
je 0x4c7cca20
movzx edx, word [edx + 0x12]
lea eax, [edx*8 + 7]
mov edx, dword [ebp - 0x28]
shr eax, 3
add eax, 3
shr eax, 2
add eax, eax
add eax, eax
mov dword [edx + 0xc], eax
cmp dword [ebp - 0x3c], 0
je 0x4c7cca49
mov ecx, dword [ebp - 0x34]
mov cl, byte [ecx + 0x18]
mov edx, dword [ebp - 0x10]
mov eax, 1
shl eax, cl
mov ecx, dword [edx + 8]
test dword [ecx + 0x304c], 0x8000
je 0x4c7ccaaf
test ebx, ebx
jbe 0x4c7ccaff
test eax, eax
jbe 0x4c7ccaff
mov ecx, eax
movzx eax, byte [edi + 2]
movzx edx, byte [edi + 1]
lea edx, [eax + edx*2]
movzx eax, byte [edi]
imul edx, edx, 0x26
lea ebx, [eax*8]
sub ebx, eax
lea eax, [edx + ebx*2]
shr eax, 7
mov byte [esi], al
add esi, 1
mov byte [esi], al
add esi, 1
mov byte [esi], al
add esi, 1
mov byte [esi], 0
add esi, 1
sub ecx, 1
jne 0x4c7cc9e1
jmp 0x4c7ccaff
mov eax, dword [edx + 0x12]
lea eax, [eax*8 + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
mov edx, dword [ebp - 0x28]
sar eax, 2
add eax, eax
add eax, eax
mov dword [edx + 0xc], eax
mov edx, dword [ecx + 8]
test dword [edx + 0x304c], 0x8000
je 0x4c7ccae6
test ebx, ebx
jbe 0x4c7ccaff
lea ecx, [ebx - 1]
shr ecx, 2
add ecx, 1
lea ecx, [ecx]
movzx eax, byte [edi + 1]
movzx edx, byte [edi + 2]
lea edx, [edx + eax*2]
movzx eax, byte [edi]
imul edx, edx, 0x26
lea ebx, [eax*8]
sub ebx, eax
lea eax, [edx + ebx*2]
shr eax, 7
mov byte [esi], al
add esi, 1
mov byte [esi], al
add esi, 1
mov byte [esi], al
add esi, 1
mov byte [esi], 0
add esi, 1
add edi, 4
sub ecx, 1
jne 0x4c7cca70
jmp 0x4c7ccaff
test ebx, ebx
jbe 0x4c7ccaff
test eax, eax
jbe 0x4c7ccaff
movzx ecx, byte [edi]
mov byte [esi], cl
mov dl, byte [edi + 1]
add edi, 1
add esi, 1
mov byte [esi], dl
movzx ecx, byte [edi + 1]
add edi, 1
add esi, 1
mov byte [esi], cl
add esi, 1
mov byte [esi], 0
add edi, 1
add esi, 1
sub eax, 1
jne 0x4c7ccab7
jmp 0x4c7ccaff
test ebx, ebx
jbe 0x4c7ccaff
mov eax, ebx
lea esp, [esp]
mov cl, byte [edi]
mov byte [esi], cl
add esi, 1
add edi, 1
sub eax, 1
jne 0x4c7ccaf0
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xa]
mov edx, dword [ebp - 0x30]
add ecx, eax
movzx eax, word [edx + 0x2a]
cmp ax, 2
mov dword [ebp - 0x14], ecx
je 0x4c7ccfe9
cmp ax, 1
je 0x4c7ccfe9
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
test dword [eax + 0x304c], 0x8000
je 0x4c7ccf4b
movzx eax, word [edx + 0x28]
cmp ax, 2
jbe 0x4c7ccf4b
xor edi, edi
cmp ax, 4
mov ebx, edi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
je 0x4c7ccb71
cmp ax, 7
jne 0x4c7ccbc6
cmp dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x34]
je 0x4c7ccb7f
add eax, 0x1a
jmp 0x4c7ccb82
add eax, 0x36
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x10]
lea ecx, [ebp - 0x6c]
push ecx
push eax
lea eax, [edi + 0x28]
push eax
mov ecx, ebx
call fcn.4c7cbfa0
test eax, eax
jne 0x4c7ccbc0
mov eax, dword [ebx + 8]
or dword [eax + 0x6074], 1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x30]
add ecx, 0x28
test eax, eax
cdq
jge 0x4c7ccd84
xor eax, edx
sub eax, edx
mov dword [ebp - 0x24], 0
je 0x4c7ccf41
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
nop
cmp dword [ecx + 0xc], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0
jbe 0x4c7ccd5f
jmp 0x4c7ccc10
movzx ecx, word [ecx]
sub ecx, 4
je 0x4c7ccccb
sub ecx, 1
je 0x4c7ccc9e
sub ecx, 2
jne 0x4c7ccd47
mov eax, dword [eax]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
shr eax, cl
xor edx, edx
mov ecx, dword [ebp - 0x58]
add esi, 1
and eax, ebx
imul eax, eax, 0xff
div ebx
mov ebx, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x18], eax
mov eax, ebx
shr eax, cl
mov ecx, dword [ebp - 0x18]
and eax, edi
imul eax, eax, 0xff
div edi
xor edx, edx
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x60]
imul eax, eax, 0x26
mov dword [ebp - 0x18], eax
mov eax, ebx
shr eax, cl
mov ecx, dword [ebp - 0x6c]
and eax, ecx
imul eax, eax, 0xff
div ecx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ebp - 0x18]
lea edx, [eax + ecx*2]
mov eax, dword [ebp - 0x14]
shr edx, 7
mov byte [esi - 1], dl
add eax, 4
jmp 0x4c7ccd41
movzx edx, byte [eax]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax + 2]
lea ecx, [edx + ecx*2]
imul ecx, ecx, 0x26
lea edx, [eax*8]
sub edx, eax
lea eax, [ecx + edx*2]
shr eax, 7
mov byte [esi], al
mov eax, dword [ebp - 0x14]
add esi, 1
add eax, 3
jmp 0x4c7ccd44
movzx eax, word [eax]
movzx ecx, byte [ebp - 0x5c]
movzx eax, ax
mov dword [ebp - 0x18], eax
shr eax, cl
xor edx, edx
movzx ecx, byte [ebp - 0x58]
and eax, ebx
imul eax, eax, 0xff
div ebx
mov ebx, dword [ebp - 0x18]
xor edx, edx
add esi, 1
mov dword [ebp - 0x18], eax
mov eax, ebx
shr eax, cl
mov ecx, dword [ebp - 0x18]
and eax, edi
imul eax, eax, 0xff
div edi
xor edx, edx
lea eax, [eax + ecx*2]
movzx ecx, byte [ebp - 0x60]
imul eax, eax, 0x26
mov dword [ebp - 0x18], eax
mov eax, ebx
shr eax, cl
mov ecx, dword [ebp - 0x6c]
and eax, ecx
imul eax, eax, 0xff
div ecx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ebp - 0x18]
lea edx, [eax + ecx*2]
mov eax, dword [ebp - 0x14]
shr edx, 7
mov byte [esi - 1], dl
add eax, 2
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
add edx, 1
add ecx, 0x28
cmp edx, dword [ecx + 0xc]
mov dword [ebp - 0x1c], edx
jb 0x4c7ccc10
mov eax, dword [ebp - 0x4c]
add dword [ebp - 0x28], eax
mov eax, dword [ecx + 8]
add dword [ebp - 0x24], 1
cdq
xor eax, edx
sub eax, edx
cmp dword [ebp - 0x24], eax
jb 0x4c7ccbf0
mov word [ecx], 3
jmp 0x4c7ccfff
xor esi, esi
xor eax, edx
sub eax, edx
mov dword [ebp - 0x24], esi
je 0x4c7ccf41
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
lea esp, [esp]
mov eax, dword [ecx + 8]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ecx + 0xc]
sub eax, esi
sub eax, 1
imul eax, edx
add eax, dword [ebp - 0x8c]
test edx, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0
jbe 0x4c7ccf22
movzx ecx, word [ecx]
sub ecx, 4
je 0x4c7cce90
sub ecx, 1
je 0x4c7cce60
sub ecx, 2
jne 0x4c7ccf0a
mov esi, dword [eax]
mov ecx, dword [ebp - 0x5c]
mov eax, esi
shr eax, cl
xor edx, edx
mov ecx, dword [ebp - 0x58]
and eax, ebx
imul eax, eax, 0xff
div ebx
xor edx, edx
mov dword [ebp - 0x38], eax
mov eax, esi
shr eax, cl
mov ecx, dword [ebp - 0x38]
and eax, edi
imul eax, eax, 0xff
div edi
xor edx, edx
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x60]
imul eax, eax, 0x26
mov dword [ebp - 0x38], eax
mov eax, esi
shr eax, cl
mov ecx, dword [ebp - 0x6c]
and eax, ecx
imul eax, eax, 0xff
div ecx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ebp - 0x38]
lea edx, [eax + ecx*2]
mov eax, dword [ebp - 0x2c]
shr edx, 7
mov byte [eax], dl
add eax, 1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
add eax, 4
jmp 0x4c7ccf07
movzx ecx, byte [eax + 1]
movzx edx, byte [eax]
lea edx, [edx + ecx*2]
movzx ecx, byte [eax + 2]
imul edx, edx, 0x26
lea esi, [ecx*8]
sub esi, ecx
lea ecx, [edx + esi*2]
mov esi, dword [ebp - 0x2c]
shr ecx, 7
mov byte [esi], cl
add esi, 1
mov dword [ebp - 0x2c], esi
add eax, 3
jmp 0x4c7ccf07
movzx eax, word [eax]
movzx ecx, byte [ebp - 0x5c]
movzx esi, ax
mov eax, esi
shr eax, cl
xor edx, edx
movzx ecx, byte [ebp - 0x58]
and eax, ebx
imul eax, eax, 0xff
div ebx
xor edx, edx
mov dword [ebp - 0x38], eax
mov eax, esi
shr eax, cl
mov ecx, dword [ebp - 0x38]
and eax, edi
imul eax, eax, 0xff
div edi
xor edx, edx
lea eax, [eax + ecx*2]
movzx ecx, byte [ebp - 0x60]
imul eax, eax, 0x26
mov dword [ebp - 0x38], eax
mov eax, esi
shr eax, cl
mov ecx, dword [ebp - 0x6c]
and eax, ecx
imul eax, eax, 0xff
div ecx
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebp - 0x38]
lea ecx, [eax + edx*2]
mov eax, dword [ebp - 0x2c]
shr ecx, 7
mov byte [eax], cl
add eax, 1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
add edx, 1
add ecx, 0x28
cmp edx, dword [ecx + 0xc]
mov dword [ebp - 0x1c], edx
jb 0x4c7ccdd1
mov edx, dword [ebp - 0x4c]
add dword [ebp - 0x18], edx
mov eax, dword [ecx + 8]
mov esi, dword [ebp - 0x24]
cdq
xor eax, edx
add esi, 1
sub eax, edx
cmp esi, eax
mov dword [ebp - 0x24], esi
jb 0x4c7ccda0
mov word [ecx], 3
jmp 0x4c7ccfff
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x30]
test eax, eax
mov ebx, esi
cdq
jge 0x4c7ccf93
xor eax, edx
xor ebx, ebx
sub eax, edx
je 0x4c7ccfff
mov edi, dword [ebp - 0x30]
xor eax, eax
cmp dword [edi + 0x34], eax
jbe 0x4c7ccf82
mov edi, edi
mov dl, byte [ecx]
mov byte [esi], dl
add eax, 1
add esi, 1
add ecx, 1
cmp eax, dword [edi + 0x34]
jb 0x4c7ccf70
mov eax, dword [edi + 0x30]
cdq
xor eax, edx
add ebx, 1
sub eax, edx
cmp ebx, eax
jb 0x4c7ccf67
jmp 0x4c7ccfff
xor eax, edx
xor esi, esi
sub eax, edx
je 0x4c7ccfff
jmp 0x4c7ccfa0
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + 0x30]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [edi + 0x34]
sub eax, esi
sub eax, 1
imul eax, edx
add eax, ebx
xor edi, edi
test edx, edx
jbe 0x4c7ccfd5
mov edi, edi
mov dl, byte [ecx]
mov byte [eax], dl
mov edx, dword [ebp - 0x30]
add edi, 1
add eax, 1
add ecx, 1
cmp edi, dword [edx + 0x34]
jb 0x4c7ccfc0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x30]
cdq
xor eax, edx
add esi, 1
sub eax, edx
cmp esi, eax
jb 0x4c7ccfa0
jmp 0x4c7ccfff
mov eax, dword [ebp - 0x50]
test eax, eax
jbe 0x4c7ccfff
mov dl, byte [ecx]
mov byte [esi], dl
add esi, 1
add ecx, 1
sub eax, 1
jne 0x4c7ccff0
push 0x10
call sub.MFC42.dll_operatornew
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
mov dword [ebp - 4], 0
je 0x4c7cd02b
mov edx, dword [ebp - 0x30]
push 0
push 1
add edx, 0x28
push edx
mov ecx, eax
call fcn.4c7d05c0
jmp 0x4c7cd02d
xor eax, eax
mov esi, dword [ebp - 0x54]
movzx ecx, word [esi + 0x20c]
push ecx
mov ecx, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.4c7d0280
cmp dword [ebp - 0x3c], 0
mov ebx, dword [ebp - 0x34]
je 0x4c7cd071
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 8]
mov eax, dword [ecx + 4]
movzx edi, word [ebx + 0x12]
imul eax, eax, 0x64
xor edx, edx
div edi
mov edi, eax
mov eax, dword [ecx + 8]
movzx ecx, word [ebx + 0x14]
jmp 0x4c7cd09d
mov eax, dword [ebx + 0x12]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov edx, dword [ebp - 0x10]
mov esi, dword [edx + 8]
mov eax, dword [esi + 4]
imul eax, eax, 0x64
xor edx, edx
div ecx
mov edi, eax
mov eax, dword [ebx + 0x16]
cdq
mov ecx, eax
mov eax, dword [esi + 8]
mov esi, dword [ebp - 0x54]
xor ecx, edx
sub ecx, edx
imul eax, eax, 0x64
xor edx, edx
div ecx
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x18], ecx
movzx ecx, word [ecx + 0x48]
mov dword [ebp - 0x38], ecx
cmp cx, 2
movzx ecx, word [esi + 0x210]
jne 0x4c7cd0c6
imul ecx, eax
jmp 0x4c7cd0c9
imul ecx, edi
cmp dword [ebp - 0x3c], 0
je 0x4c7cd0f3
movzx edx, word [ebx + 0x12]
imul edx, ecx
mov eax, 0xd1b71759
mul edx
shr edx, 0xd
mov dword [ebp - 0x1c], edx
movzx edx, word [ebx + 0x14]
imul edx, ecx
mov eax, 0xd1b71759
mul edx
jmp 0x4c7cd121
mov eax, dword [ebx + 0x12]
cdq
mov esi, eax
xor esi, edx
sub esi, edx
imul esi, ecx
mov eax, 0xd1b71759
mul esi
mov eax, dword [ebx + 0x16]
shr edx, 0xd
mov dword [ebp - 0x1c], edx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
imul esi, ecx
mov eax, 0xd1b71759
mul esi
shr edx, 0xd
cmp word [ebp - 0x38], 2
mov dword [ebp - 0x14], edx
jne 0x4c7cd135
mov dword [ebp - 0x44], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
test byte [eax + 0x1c14], 0x10
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], esi
jne 0x4c7cd172
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x1c14]
test al, 0x40
je 0x4c7cd164
mov dword [ebp - 0x20], 1
test al, al
jns 0x4c7cd199
mov ebx, 1
mov dword [ebp - 0x48], ebx
jmp 0x4c7cd19c
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x1c14]
test al, 0x40
je 0x4c7cd189
mov ebx, 1
mov dword [ebp - 0x48], ebx
jmp 0x4c7cd18c
mov ebx, dword [ebp - 0x48]
test al, al
jns 0x4c7cd19c
mov dword [ebp - 0x20], 1
jmp 0x4c7cd19c
mov ebx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4c7cd1c0
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x4c7cd1c0
xor edx, edx
test eax, eax
sete dl
xor eax, eax
test ebx, ebx
sete al
mov dword [ebp - 0x20], edx
mov ebx, eax
mov dword [ebp - 0x48], ebx
test ebx, ebx
je 0x4c7cd1e2
test ecx, ecx
je 0x4c7cd1d6
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x160]
mov dword [ebp - 0x2c], edx
jmp 0x4c7cd1e4
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x164]
mov dword [ebp - 0x24], edx
mov edx, edi
mov eax, dword [ebp - 0x54]
movzx eax, word [eax + 0x20e]
cmp eax, 9
ja case.default.0x4c7cd1f7
jmp dword [eax*4 + 0x4c7cda40]
xor edi, edi
xor esi, esi
test ecx, ecx
je 0x4c7cd21d
cmp dword [ebp - 0x20], esi
je 0x4c7cd4a7
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 0x168]
jmp 0x4c7cd49e
cmp dword [ebp - 0x20], esi
je 0x4c7cd4a7
mov edx, dword [ebp - 0x10]
mov esi, dword [edx + 0x16c]
jmp case.default.0x4c7cd1f7
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x1c]
xor esi, esi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
cmp dword [ebp - 0x44], esi
mov edi, ecx
je 0x4c7cd281
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
sub eax, dword [ebp - 0x1c]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
test ebx, ebx
je 0x4c7cd263
mov edi, ecx
cmp dword [ebp - 0x20], esi
je 0x4c7cd49e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x168]
cdq
sub eax, edx
sar eax, 1
add edi, eax
jmp 0x4c7cd49e
cmp dword [ebp - 0x20], esi
je 0x4c7cd49e
mov edx, dword [ebp - 0x10]
mov esi, dword [edx + 0x16c]
jmp case.default.0x4c7cd1f7
mov edi, edx
sub edi, dword [ebp - 0x1c]
xor esi, esi
test ecx, ecx
jne 0x4c7cd49e
cmp dword [ebp - 0x20], esi
je 0x4c7cd49e
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 0x16c]
jmp case.default.0x4c7cd1f7
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
mov esi, dword [eax + 8]
mov eax, dword [ebp - 0x14]
xor edi, edi
sub esi, eax
test ecx, ecx
je 0x4c7cd370
cmp dword [ebp - 0x20], edi
je case.default.0x4c7cd1f7
mov edi, dword [edx + 0x168]
jmp case.default.0x4c7cd1f7
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x1c]
cdq
sub eax, edx
mov edx, dword [ebp - 0x10]
mov ecx, eax
mov eax, dword [edx + 8]
mov esi, dword [eax + 8]
sub esi, dword [ebp - 0x14]
sar ecx, 1
cmp dword [ebp - 0x44], 0
mov edi, ecx
je 0x4c7cd342
mov eax, edx
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
sub eax, dword [ebp - 0x1c]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
test ebx, ebx
je 0x4c7cd323
mov edi, ecx
cmp dword [ebp - 0x20], 0
je case.default.0x4c7cd1f7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x168]
cdq
sub eax, edx
sar eax, 1
add edi, eax
jmp case.default.0x4c7cd1f7
test ebx, ebx
je case.default.0x4c7cd1f7
mov esi, dword [ebp - 0x24]
sub esi, dword [ebp - 0x14]
jmp case.default.0x4c7cd1f7
mov edi, edx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
mov esi, dword [eax + 8]
mov eax, dword [ebp - 0x14]
sub edi, dword [ebp - 0x1c]
sub esi, eax
test ecx, ecx
jne case.default.0x4c7cd1f7
test ebx, ebx
je case.default.0x4c7cd1f7
mov esi, dword [ebp - 0x24]
sub esi, eax
jmp case.default.0x4c7cd1f7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0x14]
xor edi, edi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
test ecx, ecx
je 0x4c7cd3b2
cmp dword [ebp - 0x20], edi
je case.default.0x4c7cd1f7
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 0x168]
jmp case.default.0x4c7cd1f7
test ebx, ebx
je 0x4c7cd3c3
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp dword [ebp - 0x20], edi
je case.default.0x4c7cd1f7
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x16c]
jmp 0x4c7cd491
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x1c]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0x14]
sar ecx, 1
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp dword [ebp - 0x44], 0
mov edi, ecx
je 0x4c7cd433
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
mov eax, dword [eax + 4]
sub eax, dword [ebp - 0x1c]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
test ebx, ebx
je 0x4c7cd41b
mov edi, ecx
cmp dword [ebp - 0x20], 0
je case.default.0x4c7cd1f7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x168]
cdq
sub eax, edx
sar eax, 1
add edi, eax
jmp case.default.0x4c7cd1f7
test ebx, ebx
je 0x4c7cd444
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp dword [ebp - 0x20], 0
je case.default.0x4c7cd1f7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x16c]
jmp 0x4c7cd491
mov edi, edx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0x14]
sub edi, dword [ebp - 0x1c]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
test ecx, ecx
jne case.default.0x4c7cd1f7
test ebx, ebx
je 0x4c7cd482
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp dword [ebp - 0x20], 0
je case.default.0x4c7cd1f7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x16c]
cdq
sub eax, edx
sar eax, 1
add esi, eax
test esi, esi
jge 0x4c7cd49e
xor esi, esi
test edi, edi
mov ecx, dword [ebp - 0x44]
jge 0x4c7cd4a7
xor edi, edi
xor eax, eax
xor edx, edx
cmp ecx, edx
mov dword [ebp - 0x7f], eax
mov dword [ebp - 0x7b], eax
mov dword [ebp - 0x77], eax
mov dword [ebp - 0x73], eax
mov word [ebp - 0x6f], ax
mov byte [ebp - 0x6d], al
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x81
mov byte [ebp - 0x7e], al
mov byte [ebp - 0x7d], al
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], edx
je 0x4c7cd4e9
cmp dword [ebp - 0x20], edx
je 0x4c7cd4fa
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x168]
mov dword [ebp - 0x7c], eax
jmp 0x4c7cd4fa
cmp dword [ebp - 0x20], edx
je 0x4c7cd4fa
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x16c]
mov dword [ebp - 0x78], edx
cmp dword [ebp - 0x48], 0
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x74], ecx
mov eax, dword [eax + 8]
mov dword [ebp - 0x70], eax
je 0x4c7cd51e
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], eax
cmp edx, eax
jge 0x4c7cd841
cmp dword [ebp - 0x7c], ecx
jge 0x4c7cd841
mov eax, dword [ebx + 8]
push eax
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0x118]
call fcn.4c7d2e70
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 1
call fcn.4c7d2fb0
test eax, eax
jne 0x4c7cd576
push 0x766
push 0x4c785cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add eax, edi
mov dword [ebx + 0xc], eax
xor eax, eax
add ecx, esi
cmp dword [ebp - 0x3c], eax
mov byte [ebx], 0x42
mov byte [ebx + 1], 1
mov word [ebx + 2], 0x8888
mov dword [ebx + 4], edi
mov dword [ebx + 8], esi
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
je 0x4c7cd5b9
mov eax, dword [ebp - 0x34]
movzx edx, word [eax + 0x12]
mov dword [ebx + 0x1c], edx
movzx eax, word [eax + 0x14]
jmp 0x4c7cd5cf
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0x12]
cdq
xor eax, edx
sub eax, edx
mov dword [ebx + 0x1c], eax
mov eax, dword [ecx + 0x16]
cdq
xor eax, edx
sub eax, edx
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x10]
mov dword [ebx + 0x20], eax
lea eax, [ecx + edx + 0x18]
mov dword [ebx + 0x24], eax
mov ecx, dword [edi + 8]
push ecx
push ebx
lea ecx, [ebp - 0x1f0]
call fcn.4c7d4130
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 2
call fcn.4c7d4220
test eax, eax
jne 0x4c7cd623
push 0x78c
push 0x4c785cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov eax, dword [edi + 8]
mov esi, dword [eax + 0x304c]
mov edx, esi
and edx, 0xfffdffff
lea ecx, [ebp - 0x1f0]
mov dword [eax + 0x304c], edx
call fcn.4c7d42f0
test eax, eax
jne 0x4c7cd667
push 0x795
push 0x4c785cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 0x54]
mov dword [eax + 0x304c], esi
cmp word [ecx + 0x20e], 9
jne 0x4c7cd794
cmp dword [ebp - 0x48], 0
mov eax, dword [edi + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x18], eax
je 0x4c7cd6a2
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x1c]
jl 0x4c7cd6ea
mov ecx, dword [ebx + 0x10]
cmp ecx, dword [ebp - 0x18]
jge 0x4c7cd794
cmp dword [ebp - 0x44], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], edx
je 0x4c7cd6dd
cmp dword [ebp - 0x20], 0
je 0x4c7cd6dd
mov eax, dword [edi + 0x168]
mov dword [ebx + 4], eax
add eax, edx
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], ecx
add ecx, eax
mov dword [ebx + 0x10], ecx
jmp 0x4c7cd6f2
mov dword [ebx + 4], eax
add eax, edx
mov dword [ebx + 0xc], eax
mov ecx, dword [edi + 8]
push ecx
push ebx
lea ecx, [ebp - 0x184]
call fcn.4c7d4130
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 3
call fcn.4c7d4220
test eax, eax
jne 0x4c7cd733
push 0x7c8
push 0x4c785cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov eax, dword [edi + 8]
mov esi, dword [eax + 0x304c]
mov edx, esi
and edx, 0xfffdffff
lea ecx, [ebp - 0x184]
mov dword [eax + 0x304c], edx
call fcn.4c7d42f0
test eax, eax
jne 0x4c7cd777
push 0x7d1
push 0x4c785cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x184]
mov dword [eax + 0x304c], esi
mov byte [ebp - 4], 2
call fcn.4c7d2790
jmp 0x4c7cd6a2
mov ecx, dword [edi + 8]
xor eax, eax
push ecx
lea edx, [ebp - 0x28]
mov word [ebp - 0x27], ax
mov byte [ebp - 0x25], al
push edx
lea ecx, [ebp - 0xec]
mov byte [ebp - 0x28], 0x52
mov byte [ebp - 0x27], al
mov byte [ebp - 0x26], al
mov byte [ebp - 0x25], al
call fcn.4c7d3110
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 4
call fcn.4c7d3150
test eax, eax
jne 0x4c7cd7ee
push 0x7e4
push 0x4c785cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x4c7cd805
mov ecx, esi
call fcn.4c7cfe80
push esi
call sub.MFC42.dll_operatordelete
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 2
call fcn.4c7d1710
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 1
call fcn.4c7d2790
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
call fcn.4c7d1710
jmp 0x4c7cd8cb
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4c7cd86f
push 0x74f
push 0x4c785cbc
call esi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov ecx, dword [ebp - 0x84]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
test eax, eax
jne 0x4c7cd89c
push 0x757
push 0x4c785cbc
call esi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov edx, dword [ebp - 0x88]
push edx
call edi
test eax, eax
jne 0x4c7cd953
push 0x75d
push 0x4c785cbc
call esi
jmp 0x4c7cd945
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
or dword [eax + 0x6074], 1
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x4c7cd8f7
push 0x7f6
push 0x4c785cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov edx, dword [ebp - 0x84]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
test eax, eax
jne 0x4c7cd928
push 0x7ff
push 0x4c785cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov eax, dword [ebp - 0x88]
push eax
call esi
test eax, eax
jne 0x4c7cd953
push 0x808
push 0x4c785cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret