Function at 0x5e5fc0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x880448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
push edi
xor edi, edi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], edi
call fcn.00617650
mov eax, dword [esp + 0x58]
mov dword [esp + 0x4c], edi
cmp eax, edi
je 0x5e6006
push eax
lea ecx, [esp + 0x1c]
call fcn.006181a0
mov dword [esp + 0x2c], edi
xor ebp, ebp
mov esi, 0x980638
mov bl, 2
mov ecx, dword [esi]
push ecx
lea ecx, [esp + 0x18]
call fcn.00617650
mov edx, dword [0x8ab26c]
mov dword [esp + 0x58], edx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
push 0x944f48
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], bl
mov dword [esp + 0x28], edi
call fcn.0061c7f0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x50], 3
call fcn.00618070
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], bl
call fcn.00617ec0
mov edx, dword [esp + 0x58]
cmp dword [edx - 8], edi
je 0x5e60d8
lea ecx, [esp + 0x58]
call fcn.0061bd90
lea ecx, [esp + 0x58]
call fcn.0061ba90
mov eax, dword [esp + 0x58]
cmp dword [eax - 8], edi
je 0x5e609b
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.0066b720
add esp, 8
test eax, eax
jne 0x5e6105
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
push 0x944f48
push edx
lea ecx, [esp + 0x20]
call fcn.0061c7f0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x50], 4
call fcn.00618070
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], bl
call fcn.00617ec0
mov eax, dword [esp + 0x58]
cmp dword [eax - 8], edi
jne 0x5e606e
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], 1
call fcn.00617ec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 0
call fcn.00617ec0
add esi, 8
inc ebp
cmp esi, str.504B
jae 0x5e6128
jmp 0x5e6013
lea ecx, [esp + 0x58]
mov esi, 1
mov byte [esp + 0x4c], 1
call fcn.00617ec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 0
call fcn.00617ec0
jmp 0x5e612c
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x5c]
cmp eax, edi
je 0x5e6136
mov dword [eax], esi
cmp ebp, 5
jae 0x5e6283
mov ecx, dword [ebp*8 + 0x98063c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00617650
mov edx, dword [esp + 0x10]
mov byte [esp + 0x4c], 5
mov eax, dword [edx - 8]
cmp eax, edi
je 0x5e6275
cdq
sub eax, edx
lea ecx, [esp + 0x30]
mov esi, eax
sar esi, 1
call fcn.0082c070
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 6
call fcn.0082c0d0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push esi
push eax
push ecx
call fcn.006a7560
push esi
call fcn.008325b4
mov ebp, eax
add esp, 0x10
cmp ebp, edi
je 0x5e6267
mov edx, dword [esp + 0x54]
push edi
push 0x80
push 3
push edi
push 7
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5e625e
lea eax, [esp + 0x58]
push edi
push eax
push esi
push ebp
push ebx
mov dword [esp + 0x6c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e6231
cmp dword [esp + 0x58], esi
jne 0x5e6231
mov edi, dword [esp + 0x34]
mov ecx, esi
mov esi, ebp
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x5e6203
mov dword [esp + 0x20], 1
jmp 0x5e6257
mov eax, dword [0x9dce80]
test eax, eax
je 0x5e6257
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x54]
push eax
push ecx
push str.IsWellKnownFile_Unmatch___s____s_
push str.SDTransform
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x18
jmp 0x5e6257
cmp dword [0x9dce80], edi
je 0x5e6257
mov edx, dword [esp + 0x54]
push edx
push str.IsWellKnownFile_read_file__s__fail
push str.SDTransform
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.008325dd
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 5
call fcn.0082c0a3
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 0
call fcn.00617ec0
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00617ec0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret