Function at 0x42d302
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4bddf4
call fcn.00483820
mov eax, 0x48cc
call fcn.00484450
push ebx
push esi
lea eax, [ebp - 0x4c]
push edi
push eax
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 0x24], ebx
call fcn.0048735f
pop ecx
test eax, eax
pop ecx
je 0x42d377
push dword [ebp + 8]
lea ecx, [ebp + 0x10]
call fcn.0049b86d
push eax
lea eax, [ebp + 8]
push str.Error_opening
push eax
mov dword [ebp - 4], ebx
call fcn.0049babc
mov eax, dword [eax]
push ebx
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.004a3929
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0049b7ff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0049b7ff
jmp 0x42d77a
mov eax, dword [ebp - 0x38]
add eax, 6
push eax
call fcn.00486bdb
mov edi, eax
pop ecx
cmp edi, ebx
mov dword [ebp - 0x20], edi
jne 0x42d399
push ebx
push ebx
push str.Not_enough_memory_for_sort_
call fcn.004a3929
lea eax, [ebp - 0xd4]
push 0x40
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
cmp esi, ebx
jge 0x42d404
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
lea ecx, [ebp + 0x10]
call fcn.0049b86d
push eax
lea eax, [ebp + 8]
push str.Error_opening
push eax
mov dword [ebp - 4], 2
call fcn.0049babc
mov eax, dword [eax]
push ebx
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.004a3929
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0049b7ff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0049b7ff
push edi
jmp 0x42d624
lea eax, [ebp - 0x24]
push ebx
push eax
push dword [ebp - 0x38]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x38]
je 0x42d460
push dword [ebp + 8]
lea ecx, [ebp + 0x10]
call fcn.0049b86d
push eax
lea eax, [ebp + 8]
push str.Error_reading_file
push eax
mov dword [ebp - 4], 4
call fcn.0049babc
mov eax, dword [eax]
push ebx
push ebx
push eax
mov byte [ebp - 4], 5
call fcn.004a3929
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.0049b7ff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
jmp 0x42d3f9
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 0x38]
mov byte [eax + edi], bl
push 0x28
mov dword [ebp - 0x10], ebx
lea esi, [eax + edi]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], 0xa
mov byte [eax + edi + 1], bl
call fcn.00486bdb
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x42d5a0
cmp dword [ebp + 0x10], ebx
je 0x42d539
cmp word [esi - 2], 0xa
je 0x42d4b6
mov word [esi], 0xd
add esi, 2
mov word [esi], 0xa
inc esi
inc esi
mov word [esi], bx
mov cx, word [edi]
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], cx
mov word [ebp - 0x26], bx
jne 0x42d4cf
add edi, 2
mov dword [ebp - 0x18], edi
dec esi
mov edi, eax
dec esi
cmp esi, dword [ebp - 0x18]
je 0x42d51c
mov dword [ebp - 0x1c], 0x28
cmp word [esi], 0xa
jne 0x42d515
mov eax, dword [ebp - 0x10]
mov word [esi], bx
cmp eax, dword [ebp - 0x14]
jne 0x42d509
add dword [ebp - 0x1c], 0x28
add dword [ebp - 0x14], 0xa
push dword [ebp - 0x1c]
push edi
call fcn.00486aa3
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x42d528
mov ecx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
lea eax, [esi + 2]
mov dword [edi + ecx*4], eax
dec esi
dec esi
cmp esi, dword [ebp - 0x18]
jne 0x42d4df
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [edi], eax
mov eax, edi
jmp 0x42d594
push ebx
push ebx
push str.Not_enough_memory_for_sort_
call fcn.004a3929
jmp 0x42d621
cmp byte [esi - 1], 0xa
je 0x42d549
mov byte [esi], 0xd
inc esi
mov byte [esi], 0xa
inc esi
mov byte [esi], bl
dec esi
cmp esi, edi
je 0x42d58f
mov dword [ebp - 0x1c], 0x28
cmp byte [esi], 0xa
jne 0x42d58a
mov ecx, dword [ebp - 0x10]
mov byte [esi], bl
cmp ecx, dword [ebp - 0x14]
jne 0x42d57e
add dword [ebp - 0x1c], 0x28
add dword [ebp - 0x14], 0xa
push dword [ebp - 0x1c]
push eax
call fcn.00486aa3
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x42d5a0
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
lea ecx, [esi + 1]
mov dword [eax + edx*4], ecx
dec esi
cmp esi, edi
jne 0x42d555
mov dword [eax], edi
mov edi, dword [ebp + 8]
cmp dword [ebp + 0x10], ebx
je 0x42d5b1
push 0x42d1b1
jmp 0x42d5b6
push ebx
push ebx
push str.Not_enough_memory_for_sort_
call fcn.004a3929
jmp 0x42d3fe
push 0x42d087
push 4
push dword [ebp - 0x10]
push eax
call fcn.004868d5
add esp, 0x10
push 0x4eb050
push dword [ebp + 8]
call fcn.00485007
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x14], eax
jne 0x42d62f
push dword [ebp + 8]
lea ecx, [ebp + 0x10]
call fcn.0049b86d
push eax
lea eax, [ebp + 8]
push str.Error_opening
push eax
mov dword [ebp - 4], 6
call fcn.0049babc
mov eax, dword [eax]
push ebx
push ebx
push eax
mov byte [ebp - 4], 7
call fcn.004a3929
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.0049b7ff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0049b7ff
push dword [ebp - 0x20]
call fcn.00484777
pop ecx
jmp 0x42d77a
cmp dword [ebp + 0x10], ebx
je 0x42d6d8
cmp dword [ebp + 0x14], ebx
jne 0x42d649
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00486888
pop ecx
pop ecx
cmp dword [ebp + 0xc], ebx
je 0x42d6ab
cmp dword [ebp - 0x10], ebx
mov word [ebp - 0x48d8], bx
jle 0x42d757
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
sub edi, esi
push dword [esi]
lea eax, [ebp - 0x48d8]
push eax
call fcn.00488099
pop ecx
test eax, eax
pop ecx
je 0x42d6a0
push dword [esi]
lea eax, [ebp - 0x48d8]
push eax
call fcn.00486863
push dword [ebp - 0x14]
push dword [edi + esi]
call fcn.00486888
push dword [ebp - 0x14]
push 0xa
call fcn.00486740
add esp, 0x18
add esi, 4
dec ebx
jne 0x42d666
jmp 0x42d757
cmp dword [ebp - 0x10], ebx
jle 0x42d757
mov esi, edi
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [esi]
call fcn.00486888
push dword [ebp - 0x14]
push 0xa
call fcn.00486740
add esp, 0x10
add esi, 4
dec edi
jne 0x42d6b9
jmp 0x42d757
cmp dword [ebp + 0xc], ebx
je 0x42d72f
cmp dword [ebp - 0x10], ebx
mov byte [ebp - 0x24d8], bl
jle 0x42d757
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
push dword [esi]
lea eax, [ebp - 0x24d8]
push eax
call fcn.00485250
pop ecx
test eax, eax
pop ecx
je 0x42d727
push dword [esi]
lea eax, [ebp - 0x24d8]
push eax
call fcn.004838f0
push dword [ebp - 0x14]
push dword [esi]
call fcn.004866f2
push dword [ebp - 0x14]
push 0xa
call fcn.004866e2
add esp, 0x18
add esi, 4
dec edi
jne 0x42d6ee
jmp 0x42d757
cmp dword [ebp - 0x10], ebx
jle 0x42d757
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [esi]
call fcn.004866f2
push dword [ebp - 0x14]
push 0xa
call fcn.004866e2
add esp, 0x10
add esi, 4
dec edi
jne 0x42d73a
push dword [ebp - 0x14]
call fcn.00486541
push dword [ebp - 0x14]
call fcn.00484f59
push dword [ebp - 0x18]
call fcn.00484777
push dword [ebp - 0x20]
call fcn.00484777
add esp, 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret