Function at 0x4ffbb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5be9a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
push str.commencing_duplicate_removal__pass_2_n
push esi
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x144], eax
lea ebx, [esi + 0xc]
call fcn.00410350
mov ecx, dword [ebx + 8]
push ecx
lea edx, [ebp - 0x138]
push 0x5c3be0
push edx
call fcn.004b70c5
add esp, 0x14
lea eax, [ebp - 0x138]
push 0x5c3be8
push eax
call fcn.004b80e6
mov edi, eax
add esp, 8
test edi, edi
jne 0x4ffc2c
push str.error:_dup2_cant_open_collision_file_n
push esi
call fcn.00410350
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
mov ecx, dword [ebp - 0x144]
add ecx, 0xfffffffd
mov esi, 1
shl esi, cl
push 1
push esi
call fcn.004b9228
add esp, 8
mov dword [ebp - 0x14c], eax
test eax, eax
jne 0x4ffc66
push esi
push 0x5c3b7c
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
push edi
push 4
lea ecx, [ebp - 0x15c]
push 1
push ecx
call fcn.004b98dd
add esp, 0x10
test eax, eax
je 0x4ffcdd
mov ecx, dword [ebp - 0x144]
mov eax, 1
shl eax, cl
mov dword [ebp - 0x140], eax
jmp 0x4ffca6
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x15c]
cmp ecx, eax
jae 0x4ffcc5
mov eax, dword [ebp - 0x14c]
mov esi, ecx
and ecx, 7
mov dl, 1
shl dl, cl
shr esi, 3
or byte [esi + eax], dl
push edi
push 4
lea eax, [ebp - 0x15c]
push 1
push eax
call fcn.004b98dd
add esp, 0x10
test eax, eax
jne 0x4ffca0
push edi
call fcn.004b8276
add esp, 4
push 1
mov esi, ebx
call fcn.004e9a40
mov ecx, dword [ebx + 8]
add esp, 4
push ecx
lea edx, [ebp - 0x138]
push 0x5c3c14
push edx
call fcn.004b70c5
add esp, 0xc
lea eax, [ebp - 0x138]
push 0x5c3c1c
push eax
call fcn.004b80e6
mov edi, eax
add esp, 8
mov dword [ebp - 0x160], edi
test edi, edi
jne 0x4ffd45
mov ecx, dword [ebp - 0x158]
push str.error:_dup2_cant_open_rel_file_n
push ecx
call fcn.00410350
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
mov edx, dword [ebx + 8]
push edx
lea eax, [ebp - 0x138]
push 0x5c3c44
push eax
call fcn.004b70c5
add esp, 0xc
lea ecx, [ebp - 0x138]
push 0x5c3c4c
push ecx
call fcn.004b80e6
add esp, 8
mov dword [ebp - 0x140], eax
test eax, eax
jne 0x4ffd96
mov edx, dword [ebp - 0x158]
push str.error:_dup2_cant_open_output_file_n
push edx
call fcn.00410350
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
xor eax, eax
lea ecx, [eax + 2]
lea esi, [ebp - 0x194]
call fcn.004e6040
xor eax, eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x13c], eax
or eax, 0xffffffff
push edi
push 4
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x154]
push 1
push eax
call fcn.004b98dd
mov esi, dword [ebx]
lea ecx, [ebp - 0x138]
push 0x12c
push ecx
call fcn.00450070
add esp, 0x18
lea ebx, [ebx]
cmp byte [ebx + 5], 0
je 0x4ffe03
mov edx, dword [ebx]
push edx
call fcn.004b7149
add esp, 4
jmp 0x4ffe24
mov ecx, dword [ebx]
test ecx, ecx
je 0x4ffe2c
mov eax, dword [ecx + 0x10]
cmp eax, 0x1c4f
je 0x4ffe21
cmp eax, 0x79b1
jne 0x4ffe2c
cmp eax, 0x1c4f
jne 0x4ffe2c
mov eax, dword [ecx + 0x44]
test eax, eax
jne 0x4fffaf
mov al, byte [ebp - 0x138]
cmp al, 0x2d
je 0x4ffe5e
movsx eax, al
push eax
call fcn.004b94b3
add esp, 4
test eax, eax
jne 0x4ffe5e
mov esi, dword [ebx]
lea ecx, [ebp - 0x138]
push 0x12c
push ecx
call fcn.00450070
add esp, 8
jmp 0x4ffdf0
mov eax, dword [ebp - 0x148]
inc eax
mov dword [ebp - 0x148], eax
cmp eax, dword [ebp - 0x154]
jne 0x4ffeb6
mov edx, dword [ebp - 0x140]
push edx
push 4
lea eax, [ebp - 0x148]
push 1
push eax
call fcn.004b9a51
push edi
push 4
lea ecx, [ebp - 0x154]
push 1
push ecx
call fcn.004b98dd
mov esi, dword [ebx]
lea edx, [ebp - 0x138]
push 0x12c
push edx
call fcn.00450070
add esp, 0x28
jmp 0x4ffdf0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4ffec5
cmp eax, ecx
jae 0x4fffaf
lea eax, [ebp - 0x138]
push eax
lea edi, [ebp - 0x168]
call fcn.004e05a0
mov ecx, dword [ebp - 0x168]
add esp, 4
push 0xa
inc ecx
mov esi, eax
push 0
push ecx
mov edi, edx
mov dword [ebp - 0x170], esi
call fcn.004b8d37
imul esi, esi, 0x9e3779b1
shl eax, 5
mov edx, edi
and edi, 0x1f
or eax, edi
mov dword [ebp - 0x16c], eax
imul eax, eax, 0x9e375365
xor esi, eax
mov ecx, 0x20
sub ecx, dword [ebp - 0x144]
sar edx, 0x1f
shr esi, cl
mov ecx, dword [ebp - 0x14c]
add esp, 0xc
mov eax, esi
shr eax, 3
mov dl, byte [eax + ecx]
and esi, 7
test byte [esi + 0x521df0], dl
je 0x4fff88
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x170]
push 0
push ecx
lea esi, [ebp - 0x194]
call fcn.004e5cf0
add esp, 0xc
cmp dword [ebp - 0x164], 0
je 0x4fff88
mov edx, dword [ebp - 0x140]
push edx
push 4
lea eax, [ebp - 0x148]
push 1
push eax
call fcn.004b9a51
add esp, 0x10
inc dword [ebp - 0x150]
jmp 0x4fff8e
inc dword [ebp - 0x13c]
mov esi, dword [ebx]
lea ecx, [ebp - 0x138]
push 0x12c
push ecx
call fcn.00450070
mov edi, dword [ebp - 0x160]
add esp, 8
jmp 0x4ffdf0
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x150]
mov esi, dword [ebp - 0x158]
push edx
push eax
push str.found__u_duplicates_and__u_unique_relations_n
push esi
call fcn.00410350
mov eax, dword [ebp - 0x194]
mov ecx, dword [ebp - 0x144]
inc eax
imul eax, dword [ebp - 0x174]
add ecx, 0xfffffffd
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x188]
lea edx, [edx + eax*4]
mov eax, 4
shl eax, cl
add edx, eax
mov dword [ebp - 0x160], edx
fild dword [ebp - 0x160]
jns 0x500012
fadd qword [0x5b4428]
fmul qword [0x5b4730]
add esp, 8
fstp qword [esp]
push 0x5c3ca4
push esi
call fcn.00410350
mov esi, ebx
call fcn.004e9cd0
push edi
call fcn.004b8276
mov ecx, dword [ebp - 0x140]
add esp, 0x14
push ecx
call fcn.004b8276
mov edx, dword [ebx + 8]
add esp, 4
push edx
lea eax, [ebp - 0x138]
push 0x5c3cbc
push eax
call fcn.004b70c5
lea ecx, [ebp - 0x138]
add esp, 0xc
push ecx
call fcn.004b7dfa
mov edx, dword [ebx + 8]
add esp, 4
push edx
lea eax, [ebp - 0x138]
push 0x5c3cc4
push eax
call fcn.004b70c5
lea ecx, [ebp - 0x138]
add esp, 0xc
push ecx
call fcn.004b7dfa
mov edx, dword [ebp - 0x14c]
add esp, 4
push edx
call fcn.004b7229
mov eax, dword [ebp - 0x18c]
add esp, 4
push eax
call fcn.004b7229
mov ecx, dword [ebp - 0x17c]
add esp, 4
push ecx
call fcn.004b7229
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x13c]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc40c
mov esp, ebp
pop ebp
ret