Function at 0x55dec0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x65857b
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x100]
xor ebx, ebx
mov esi, ecx
mov dword [eax], ebx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xa0]
mov ecx, dword [eax + 0x58]
cmp ecx, ebx
je 0x55df1e
mov ecx, dword [ecx + 0x10]
jmp 0x55df28
mov ecx, dword [eax + 0x2c]
cmp ecx, ebx
jne 0x55df28
lea ecx, [eax + 0x30]
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x28], edi
cmp edi, 0xffffffff
jne 0x55df50
mov eax, 1
jmp 0x55e1e0
mov ecx, dword [esi + 0x3e4]
push ebx
lea eax, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
push edi
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x55e1d5
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x55e1d5
lea ebp, [esi + 0x3a0]
lea ecx, [esp + 0x2c]
mov edi, ebp
cmp eax, 4
jb 0x55dfb4
lea ebx, [ebx]
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x55dfe8
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x55dfa0
cmp eax, ebx
je 0x55e1d1
mov dl, byte [ecx]
cmp dl, byte [edi]
jne 0x55dfe8
cmp eax, 1
jbe 0x55e1d1
mov dl, byte [ecx + 1]
cmp dl, byte [edi + 1]
jne 0x55dfe8
cmp eax, 2
jbe 0x55e1d1
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
je 0x55e1d1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], ebx
call fcn.00402500
mov dword [esp + 0xf8], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x3e4]
push ecx
push edx
lea eax, [esp + 0x24]
push str.Check_w_st_o_n_cn_failed__r_nposInCmpBuff3_ld__bytes_read_ld_r_nBuff3:_r_n
push eax
call fcn.00402f70
mov ecx, dword [esp + 0x2c]
add esp, 0x10
push ecx
mov ecx, esi
call fcn.0055b6c0
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0xac]
push edx
push ebp
call fcn.00564500
mov ecx, dword [esi + 0xac]
push 0xc
push str._r_ntmpBuff:_r_n
call fcn.00564500
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esi + 0xac]
call fcn.00564500
mov ecx, dword [esi + 0xac]
push 2
push 0x6722a4
call fcn.00564500
mov eax, dword [esi + 0x3e4]
lea edx, [esp + 0x18]
push edx
push eax
lea edi, [esi + 0x10]
push ebp
mov ecx, edi
mov dword [esp + 0x24], ebx
call fcn.00564c10
cmp eax, ebx
je 0x55e114
mov eax, dword [esi + 0x3e4]
cmp eax, dword [esp + 0x18]
jne 0x55e114
mov ecx, dword [esi + 0xa4]
cdq
add dword [esi + 0x78], eax
lea edi, [esi + 0x434]
push edi
adc dword [esi + 0x7c], edx
add dword [esi + 0x80], eax
adc dword [esi + 0x84], edx
add dword [ecx], eax
adc dword [ecx + 4], edx
mov eax, dword [esi + 0x3e4]
mov ecx, dword [esi + 0xa8]
cdq
add dword [ecx], eax
adc dword [ecx + 4], edx
call fcn.0061bba1
mov eax, dword [edi]
sub eax, dword [esi + 0x428]
mov ecx, dword [esi + 0xc0]
add esp, 4
push eax
mov dword [esi + 0x440], eax
call fcn.0055be10
mov ecx, esi
call fcn.0055b910
mov ecx, dword [esp + 0x20]
mov dword [esi + 0xb4], ebx
mov dword [ecx], 0xfffffff5
jmp 0x55e1bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
mov ebp, eax
mov eax, dword [esi + 0x3e4]
push ebp
push edx
push eax
lea ecx, [esp + 0x78]
push str.File_write_error__Received__d_bytes__wrote__d_bytes__errCode___ld_n
push ecx
call fcn.0061af5b
add esp, 0x14
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
call fcn.0055b6c0
cmp ebp, 5
jne 0x55e15d
mov eax, dword [0x755d24]
mov ecx, dword [esi + 0xac]
push eax
call fcn.005646e0
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0xa4]
xor edx, edx
add dword [esi + 0x78], ecx
adc dword [esi + 0x7c], edx
add dword [eax], ecx
mov ecx, esi
adc dword [eax + 4], edx
call fcn.0055dd30
test eax, eax
je 0x55e19a
mov dword [esp + 0xf8], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov eax, 0xfffffffb
jmp 0x55e1e0
mov esi, dword [esi + 0xa0]
cmp esi, ebx
je 0x55e1b3
mov esi, dword [esi + 0x10]
cmp esi, ebx
je 0x55e1b3
push esi
mov ecx, edi
call fcn.00565040
mov ecx, dword [esp + 0x20]
mov dword [ecx], 0xfffffffe
mov dword [esp + 0xf8], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.0061807e
add esp, 0xe8
ret 4