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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff2c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x5e037f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x15], 0
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0xbc]
xor eax, eax
call fcn.004073d8
mov eax, dword [ebp - 0xbc]
lea edx, [ebp - 0xb8]
call fcn.00426460
lea eax, [ebp - 0xb8]
mov edx, 0x5e03a0
call fcn.0040b6d0
mov eax, dword [ebp - 0xb8]
call fcn.0040b4d8
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x5df9d3
lea edx, [ebp - 0xc4]
xor eax, eax
call fcn.004073d8
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0xc0]
call fcn.00426460
lea eax, [ebp - 0xc0]
mov edx, 0x5e03a0
call fcn.0040b6d0
mov eax, dword [ebp - 0xc0]
call fcn.00426374
jmp 0x5e034c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetFileSizeEx
lea eax, [ebp - 4]
mov edx, dword [0x5d3f80]
call fcn.0040d96c
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x5d3f80]
call fcn.0040d848
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x5dfa37
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_SetFilePointerEx
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
jne 0x5dfa0f
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x5dfa5f
mov eax, dword [ebp - 0x50]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
sub eax, 8
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, 8
call fcn.005d50e0
push 0x20
lea edx, [ebp - 8]
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.005d50e0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x5dfa9c
mov eax, dword [ebp - 0x54]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
sub eax, 0x20
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, 0x20
call fcn.005d50e0
push 0x10
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.005d50e0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x5dfad9
mov eax, dword [ebp - 0x58]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
sub eax, 0x10
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, 0x10
call fcn.005d50e0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x5dfb07
mov eax, dword [ebp - 0x5c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x30]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.005df62c
test al, al
je 0x5e034c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x5dfb3a
mov eax, dword [ebp - 0x60]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0xd4]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.005d8a94
lea eax, [ebp - 0xd4]
lea edx, [ebp - 0xb4]
mov ecx, 0xf
call fcn.005d8ac4
lea edx, [ebp - 0xa4]
mov ecx, 0x10
mov eax, dword [ebp - 0xc]
call fcn.004071b4
push 0xf
lea ecx, [ebp - 0xb4]
lea eax, [ebp - 0xa4]
mov edx, 0xf
call fcn.005d8ae0
test al, al
je 0x5e034c
lea eax, [ebp - 0x10]
mov edx, dword [0x5d3f80]
call fcn.0040d96c
push 4
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x5d3f80]
call fcn.0040d848
add esp, 4
lea eax, [ebp - 0x14]
mov edx, dword [0x5d3f80]
call fcn.0040d96c
push 8
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x5d3f80]
call fcn.0040d848
add esp, 4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x5dfbf7
mov eax, dword [ebp - 0x64]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 4
jl 0x5e034c
push 4
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.005d50e0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x5dfc27
mov eax, dword [ebp - 0x68]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
sub eax, 4
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, 4
call fcn.005d50e0
lea eax, [ebp - 0x10]
call fcn.005d50b4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [0x6041ec]
mov ecx, 1
mov edx, dword [0x5d5e20]
call fcn.0040d848
add esp, 4
mov eax, dword [ebp - 0x38]
dec eax
test eax, eax
jl 0x5e031c
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x5dfc93
mov eax, dword [ebp - 0x6c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 8
jl 0x5e034c
push 8
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.005d50e0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x5dfcc3
mov eax, dword [ebp - 0x70]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
sub eax, 8
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, 8
call fcn.005d50e0
lea eax, [ebp - 0x14]
call fcn.005d45e4
mov ecx, dword [ebp - 0x34]
add ecx, ecx
mov ebx, dword [0x6041ec]
mov ebx, dword [ebx]
mov dword [ebx + ecx*8], eax
mov dword [ebx + ecx*8 + 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x5dfd0d
mov eax, dword [ebp - 0x74]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 4
jl 0x5e034c
push 4
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.005d50e0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x5dfd3d
mov eax, dword [ebp - 0x78]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
sub eax, 4
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, 4
call fcn.005d50e0
lea eax, [ebp - 0x10]
call fcn.005d50b4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x34]
add eax, eax
mov edx, dword [0x6041ec]
mov edx, dword [edx]
lea eax, [edx + eax*8 + 8]
mov ecx, 1
mov edx, dword [0x5d5da0]
call fcn.0040d848
add esp, 4
mov eax, dword [ebp - 0x3c]
dec eax
test eax, eax
jl 0x5e0310
inc eax
mov dword [ebp - 0x48], eax
xor edi, edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x5dfda5
sub eax, 4
mov eax, dword [eax]
cmp eax, 2
jl 0x5e034c
mov eax, dword [ebp - 0x34]
add eax, eax
mov edx, dword [0x6041ec]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 8]
mov esi, edi
shl esi, 4
add esi, edi
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
mov byte [eax + esi*8], dl
mov eax, dword [ebp - 0x34]
add eax, eax
mov edx, dword [0x6041ec]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 8]
mov edx, dword [ebp - 4]
movzx edx, byte [edx + 1]
mov byte [eax + esi*8 + 1], dl
mov eax, dword [ebp - 4]
test eax, eax
je 0x5dfdf7
sub eax, 4
mov eax, dword [eax]
sub eax, 2
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, 2
call fcn.005d50e0
mov eax, dword [ebp - 4]
test eax, eax
je 0x5dfe17
sub eax, 4
mov eax, dword [eax]
cmp eax, 4
jl 0x5e034c
push 4
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.005d50e0
mov eax, dword [ebp - 4]
test eax, eax
je 0x5dfe3b
sub eax, 4
mov eax, dword [eax]
sub eax, 4
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, 4
call fcn.005d50e0
lea eax, [ebp - 0x10]
call fcn.005d50b4
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x5dfe65
sub eax, 4
mov eax, dword [eax]
cmp ebx, eax
ja 0x5e034c
push ebx
mov eax, dword [ebp - 0x34]
add eax, eax
mov edx, dword [0x6041ec]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 8]
lea edx, [eax + esi*8 + 4]
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.005d50e0
mov eax, dword [ebp - 4]
test eax, eax
je 0x5dfe99
sub eax, 4
mov eax, dword [eax]
sub eax, ebx
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, ebx
call fcn.005d50e0
mov eax, dword [ebp - 4]
test eax, eax
je 0x5dfeb5
sub eax, 4
mov eax, dword [eax]
cmp eax, 4
jl 0x5e034c
push 4
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.005d50e0
mov eax, dword [ebp - 4]
test eax, eax
je 0x5dfed9
sub eax, 4
mov eax, dword [eax]
sub eax, 4
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, 4
call fcn.005d50e0
lea eax, [ebp - 0x10]
call fcn.005d50b4
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x5dff03
sub eax, 4
mov eax, dword [eax]
cmp ebx, eax
ja 0x5e034c
push ebx
mov eax, dword [ebp - 0x34]
add eax, eax
mov edx, dword [0x6041ec]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 8]
lea edx, [eax + esi*8 + 8]
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.005d50e0
mov eax, dword [ebp - 4]
test eax, eax
je 0x5dff37
sub eax, 4
mov eax, dword [eax]
sub eax, ebx
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, ebx
call fcn.005d50e0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x5dff5e
mov eax, dword [ebp - 0x7c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 4
jl 0x5e034c
push 4
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.005d50e0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x5dff8e
mov eax, dword [ebp - 0x80]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
sub eax, 4
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, 4
call fcn.005d50e0
lea eax, [ebp - 0x10]
call fcn.005d50b4
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
je 0x5dffd2
mov eax, dword [ebp - 0x84]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x84], eax
cmp ebx, dword [ebp - 0x84]
ja 0x5e034c
push ebx
mov eax, dword [ebp - 0x34]
add eax, eax
mov edx, dword [0x6041ec]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 8]
lea edx, [eax + esi*8 + 0xc]
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.005d50e0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x5e0021
mov eax, dword [ebp - 0x88]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
sub eax, ebx
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, ebx
call fcn.005d50e0
mov esi, 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x5e0048
sub eax, 4
mov eax, dword [eax]
cmp eax, 8
jl 0x5e034c
push 8
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.005d50e0
mov eax, dword [ebp - 4]
test eax, eax
je 0x5e006c
sub eax, 4
mov eax, dword [eax]
sub eax, 8
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, 8
call fcn.005d50e0
lea eax, [ebp - 0x14]
call fcn.005d45e4
mov ecx, dword [ebp - 0x34]
add ecx, ecx
mov ebx, dword [0x6041ec]
mov ebx, dword [ebx]
mov ecx, dword [ebx + ecx*8 + 8]
mov ebx, edi
shl ebx, 4
add ebx, edi
lea ecx, [ecx + ebx*8]
mov dword [ecx + esi*8 + 8], eax
mov dword [ecx + esi*8 + 0xc], edx
inc esi
cmp esi, 0xf
jne 0x5e003c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x5e00d4
mov eax, dword [ebp - 0x8c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 4
jl 0x5e034c
push 4
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.005d50e0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x5e0113
mov eax, dword [ebp - 0x90]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
sub eax, 4
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, 4
call fcn.005d50e0
lea eax, [ebp - 0x10]
call fcn.005d50b4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x34]
add eax, eax
mov edx, dword [0x6041ec]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 8]
mov edx, edi
shl edx, 4
add edx, edi
lea eax, [eax + edx*8 + 0x80]
mov ecx, 1
mov edx, dword [0x5d5cb0]
call fcn.0040d848
add esp, 4
mov eax, dword [ebp - 0x40]
dec eax
test eax, eax
jl 0x5e0306
inc eax
mov dword [ebp - 0x4c], eax
xor esi, esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x5e018c
sub eax, 4
mov eax, dword [eax]
cmp eax, 4
jl 0x5e034c
push 4
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.005d50e0
mov eax, dword [ebp - 4]
test eax, eax
je 0x5e01b0
sub eax, 4
mov eax, dword [eax]
sub eax, 4
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, 4
call fcn.005d50e0
lea eax, [ebp - 0x10]
call fcn.005d50b4
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x5e01da
sub eax, 4
mov eax, dword [eax]
cmp ebx, eax
ja 0x5e034c
push ebx
mov eax, dword [ebp - 0x34]
add eax, eax
mov edx, dword [0x6041ec]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 8]
mov edx, edi
shl edx, 4
add edx, edi
mov eax, dword [eax + edx*8 + 0x80]
lea edx, [esi + esi*2]
lea edx, [eax + edx*4]
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.005d50e0
mov eax, dword [ebp - 4]
test eax, eax
je 0x5e021e
sub eax, 4
mov eax, dword [eax]
sub eax, ebx
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, ebx
call fcn.005d50e0
mov eax, dword [ebp - 4]
test eax, eax
je 0x5e023a
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x10
jl 0x5e034c
push 0x10
mov eax, dword [ebp - 0x34]
add eax, eax
mov edx, dword [0x6041ec]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 8]
mov edx, edi
shl edx, 4
add edx, edi
mov eax, dword [eax + edx*8 + 0x80]
lea edx, [esi + esi*2]
lea edx, [eax + edx*4 + 4]
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.005d50e0
mov eax, dword [ebp - 4]
test eax, eax
je 0x5e0281
sub eax, 4
mov eax, dword [eax]
sub eax, 0x10
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, 0x10
call fcn.005d50e0
mov eax, dword [ebp - 4]
test eax, eax
je 0x5e02a1
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x10
jl 0x5e034c
push 0x10
mov eax, dword [ebp - 0x34]
add eax, eax
mov edx, dword [0x6041ec]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 8]
mov edx, edi
shl edx, 4
add edx, edi
mov eax, dword [eax + edx*8 + 0x80]
lea edx, [esi + esi*2]
lea edx, [eax + edx*4 + 8]
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.005d50e0
mov eax, dword [ebp - 4]
test eax, eax
je 0x5e02e8
sub eax, 4
mov eax, dword [eax]
sub eax, 0x10
push eax
lea edx, [ebp - 4]
lea eax, [ebp - 4]
mov ecx, 0x10
call fcn.005d50e0
inc esi
dec dword [ebp - 0x4c]
jne 0x5e0180
inc edi
dec dword [ebp - 0x48]
jne 0x5dfd99
inc dword [ebp - 0x34]
dec dword [ebp - 0x44]
jne 0x5dfc7c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x5e033f
mov eax, dword [ebp - 0x94]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x5e034c
mov byte [ebp - 0x15], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e0386
lea eax, [ebp - 0xc4]
mov edx, 4
call fcn.0040a6f8
lea eax, [ebp - 0x14]
mov edx, dword [0x5d3f80]
mov ecx, 5
call fcn.0040c420
pop eax
jmp eax