Function at 0x47cbc8
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x24
mov eax, 0x510164
call fcn.004f41ae
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x30]
xor ebx, ebx
call fcn.00477032
lea eax, [esi + 0x1ab4]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], eax
mov dword [eax], ebx
lea eax, [esi + 0x1be0]
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.0047836f
mov eax, dword [ebp + 8]
test eax, eax
je 0x47d05c
cmp word [eax], bx
je 0x47d05c
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x47d03b
cmp edi, 0xffffffff
je 0x47d03b
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x47d02f
cmp dword [ebp - 0x24], ebx
je 0x47d02f
cmp dword [ebp - 0x20], ebx
jne 0x47d02f
push dword [ebp - 0x24]
call fcn.004e1c0a
pop ecx
mov ecx, eax
mov dword [esi + 0x1be4], ecx
test ecx, ecx
je 0x47d04c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
push ebx
push edx
push eax
push ecx
push edi
mov dword [esi + 0x1be0], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47d024
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jne 0x47d024
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xd
pop eax
push eax
push dword [esi + 0x1be4]
call fcn.004f5617
mov dword [ebp - 0x10], eax
pop ecx
pop ecx
test eax, eax
jne 0x47ccda
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push str.Dump_file_invalid_format__title_
call fcn.00420ad9
add esp, 0x14
jmp 0x47d05c
xor ecx, ecx
mov word [eax], cx
mov edi, dword [ebp - 0x10]
push 6
add edi, 4
push 0x55386c
push edi
call fcn.004ff630
add esp, 0xc
test eax, eax
je 0x47cd05
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push str.Dump_file_invalid_format__Size_start_
jmp 0x47cccd
push 0xd
pop eax
push eax
push edi
call fcn.004f5617
mov dword [ebp - 0x10], eax
pop ecx
pop ecx
test eax, eax
jne 0x47cd24
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push str.Dump_file_invalid_format__Size_line_end_
jmp 0x47cccd
add eax, 4
mov dword [esi + 0x1bf8], eax
lea eax, [ebp - 0x10]
push 0xa
push eax
lea eax, [edi + 0xc]
push eax
call fcn.004fe2f8
mov word [esi + 0x1bec], ax
add esp, 0xc
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47d015
push 0x78
pop ecx
cmp word [eax], cx
jne 0x47d015
push 0xa
lea ecx, [ebp - 0x10]
add eax, 2
push ecx
push eax
call fcn.004fe2f8
mov edi, dword [ebp - 0x10]
add esp, 0xc
movzx ecx, ax
mov word [esi + 0x1bee], cx
test edi, edi
je 0x47d006
movzx eax, word [edi]
push 0x20
pop edx
cmp ax, dx
je 0x47cd9e
push 0xd
pop edx
cmp ax, dx
jne 0x47d006
push 0x20
pop edx
xor eax, eax
mov word [esi + 0x1bf0], ax
lea eax, [ecx - 1]
mov word [esi + 0x1bf2], ax
cmp word [edi], dx
jne 0x47ce30
add edi, 2
cmp word [edi], dx
je 0x47cdb6
push 8
push str.Cursor:
push edi
call fcn.004ff630
add esp, 0xc
test eax, eax
jne 0x47ce30
push 0xa
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.004fe2f8
movzx edi, ax
add esp, 0xc
mov eax, edi
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47ce7e
push 0x78
pop ecx
cmp word [eax], cx
jne 0x47ce7e
push 0xa
lea ecx, [ebp - 0x10]
add eax, 2
push ecx
push eax
call fcn.004fe2f8
add esp, 0xc
movzx eax, ax
mov ecx, eax
test di, di
js 0x47ce30
test ax, ax
js 0x47ce30
mov eax, edi
mov word [esi + 0x1bf2], cx
mov word [esi + 0x1bf0], ax
movsx eax, word [esi + 0x1bee]
movsx edx, word [esi + 0x1bec]
imul edx, eax
imul eax, edx, 0x18
mov dword [ebp + 8], edx
lea ecx, [edx + edx]
add ecx, dword [esi + 0x1bf8]
sub eax, dword [esi + 0x1be4]
mov dword [esi + 0x1bfc], ecx
add ecx, eax
cmp ecx, dword [esi + 0x1be0]
setle al
mov byte [esi + 0x1bf4], al
jle 0x47ce8d
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push str.Dump_file_invalid_format__Block1_
jmp 0x47cccd
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push str.Dump_file_invalid_format__Cursor_
jmp 0x47cccd
mov ecx, dword [esi + 0x4c]
mov dword [esi], 5
call fcn.0049635b
mov ecx, dword [esi + 0x4c]
mov ebx, eax
call fcn.00496348
mov edi, dword [ebp - 0x18]
mov esi, eax
mov ecx, dword [ebp - 0x14]
xor eax, eax
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ecx + 0x1ae8], 0xf
lea edi, [ecx + 0x1afc]
mov dword [ecx + 0x1aec], 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x362
mov edi, ecx
mov dword [edi + 0x1af4], eax
mov dword [edi + 0x1af0], eax
xor eax, eax
mov dword [edi + 0x1af8], eax
mov eax, dword [edi + 0x1bec]
mov dword [ecx + 0x1afc], eax
mov eax, dword [edi + 0x1bf0]
mov dword [edi + 0x1b00], eax
pop eax
mov word [edi + 0x1b04], ax
xor eax, eax
mov dword [edi + 0x1b06], eax
lea eax, [ebx - 1]
mov word [edi + 0x1b0a], ax
lea eax, [esi - 1]
mov word [edi + 0x1b0c], ax
mov eax, dword [edi + 0x4c]
mov eax, dword [eax + 0x4288]
mov eax, dword [eax + 0x1b1a]
mov dword [edi + 0x1b1a], eax
mov dword [edi + 0x1b0e], eax
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.00480edc
movsx eax, word [edi + 0x1bee]
mov ecx, edi
mov dword [edi + 0x1b64], eax
lea eax, [ebp - 0x30]
push eax
mov dword [edi + 0x1b5c], ebx
xor ebx, ebx
push ebx
push ebx
push ebx
mov dword [edi + 0x1b60], esi
mov byte [edi + 0x1b78], 1
call fcn.0047b66b
test al, al
je 0x47d05c
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x30]
push esi
call fcn.00476501
test al, al
je 0x47d05c
mov eax, dword [edi + 0x1bfc]
lea ecx, [esi + esi]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x2c]
push ecx
push dword [edi + 0x1bf8]
push dword [eax + 0x18]
mov ebx, dword [eax + 0x1c]
call fcn.004f5d30
add esp, 0xc
test esi, esi
je 0x47cff4
mov edx, dword [ebp + 8]
add edx, 8
mov ecx, dword [edx]
mov eax, ecx
shr eax, 8
lea edx, [edx + 0x18]
shr ecx, 0x10
and eax, 0xf
shl ecx, 4
or eax, ecx
movzx eax, al
mov word [ebx], ax
add ebx, 2
sub esi, 1
jne 0x47cfd1
mov byte [edi + 0x1b58], 1
mov bl, 1
mov byte [edi + 0x1b8c], 1
jmp 0x47d064
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push str.Dump_file_invalid_format__Size.Y_
jmp 0x47cccd
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push str.Dump_file_invalid_format__Size.X_
jmp 0x47cccd
push ebx
push ebx
push ebx
push ebx
push str.Dump_file_reading_failed
jmp 0x47d044
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push str.Invalid_dump_file_size
jmp 0x47d044
push ebx
push ebx
push ebx
push ebx
push str.Cant_open_dump_file_for_reading
call fcn.00420ad9
add esp, 0x14
test edi, edi
je 0x47d05c
cmp edi, 0xffffffff
je 0x47d05c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
call fcn.0047836f
lea ecx, [ebp - 0x30]
call fcn.00477212
mov al, bl
call fcn.004f4177
ret 4