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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3792
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x539c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [0x5396d8]
mov ecx, 0x5396d8
mov dword [ebp - 0x40], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
je 0x423cec
mov eax, 0x51bb88
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x423c77
test dx, dx
je 0x423c73
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x423c77
add ecx, 4
add eax, 4
test dx, dx
jne 0x423c51
xor eax, eax
jmp 0x423c7c
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x423cec
lea ecx, [ebp - 0x1c]
call fcn.00422b40
mov dword [ebp - 4], 2
mov dword [ebp - 0x2c], 3
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x423cb2
push 0x80004005
call fcn.00401a60
mov eax, dword [esi]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x423cda
test dx, dx
je 0x423cd6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x423cda
add eax, 4
add ecx, 4
test dx, dx
jne 0x423cb4
xor eax, eax
jmp 0x423cdf
sbb eax, eax
or eax, 1
test eax, eax
sete al
mov byte [ebp - 0xd], 0
test al, al
je 0x423cf0
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
or ebx, 0xffffffff
test al, 2
je 0x423d2a
and eax, 0xfffffffd
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x423d2a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x423dc9
lea ecx, [ebp - 0x18]
call fcn.00422b40
mov dword [ebp - 4], 4
mov edx, dword [eax]
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x423d90
cmp dword [esi + 0xc], 0
jl 0x423d85
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x423d85
call fcn.00402720
mov dword [ebp - 0x1c], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423d7e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [edi], eax
jmp 0x423d90
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.004025f0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x424105
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x423e49
lea ecx, [ebp - 0x18]
call fcn.00422b40
mov dword [ebp - 4], 6
mov edx, dword [eax]
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x423e44
cmp dword [esi + 0xc], 0
jl 0x423e39
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x423e39
call fcn.00402720
mov dword [ebp - 0x1c], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423e32
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [edi], eax
jmp 0x423e44
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.004025f0
jmp 0x423d90
lea ecx, [ebp - 0x38]
push ecx
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x423eea
lea ecx, [ebp - 0x14]
call fcn.00422b40
mov dword [ebp - 4], 8
mov edx, dword [eax]
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x423ec0
cmp dword [esi + 0xc], 0
jl 0x423eb5
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x423eb5
call fcn.00402720
mov dword [ebp - 0x18], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423eae
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [edi], eax
jmp 0x423ec0
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.004025f0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4240fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4240fc
cmp dword [ebp - 0x34], 0
je 0x423f13
lea ecx, [ebp - 0x18]
call fcn.00422b40
mov dword [ebp - 4], 0xa
push eax
mov ecx, edi
call fcn.00402510
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
jmp 0x423eca
cmp dword [ebp - 0x38], 0
je 0x4240fc
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xc
push dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
call fcn.00424280
mov esi, dword [ebp - 0x28]
push 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4240d6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xe]
push eax
lea edx, [ebp - 0xd]
mov ecx, esi
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xe], 0
mov dword [ebp - 0x14], 0
call fcn.004224f0
mov eax, dword [ebp - 0x14]
add esp, 8
test eax, eax
jle 0x423fa7
add eax, esi
push eax
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.00424360
mov esi, dword [ebp - 0x28]
cmp byte [ebp - 0xe], 0
mov edi, dword [ebp - 0x24]
je 0x423ff5
mov ecx, dword [0x53ed90]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x17
idiv ecx
cmp edx, 8
jne 0x423fdb
push 4
call fcn.004ace0a
mov ecx, dword [0x53ed90]
add esp, 4
mov dword [eax], ecx
mov ecx, esi
cmp esi, edi
je 0x423ff5
mov dl, byte [ecx]
mov bl, byte [ecx + 1]
mov byte [ecx + 1], dl
mov byte [ecx], bl
add ecx, 2
cmp ecx, edi
jne 0x423fe1
or ebx, 0xffffffff
sub edi, esi
cmp byte [esi + edi - 1], 0
je 0x42402a
inc edi
push edi
lea ecx, [ebp - 0x28]
call fcn.00424280
cmp byte [ebp - 0xd], 0
mov esi, dword [ebp - 0x28]
mov byte [esi + edi - 1], 0
je 0x42407d
inc edi
push edi
lea ecx, [ebp - 0x28]
call fcn.00424280
mov esi, dword [ebp - 0x28]
mov byte [esi + edi - 1], 0
jmp 0x424045
cmp byte [ebp - 0xd], 0
je 0x42407d
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x28]
call fcn.00424280
mov esi, dword [ebp - 0x28]
mov word [esi + edi], 0
push esi
lea ecx, [ebp - 0x14]
call fcn.00402400
mov byte [ebp - 4], 0xd
mov edi, dword [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00402510
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4240d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4240d6
mov eax, dword [0x5396d8]
mov ecx, 0x5396d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xf
push esi
lea ecx, [ebp - 0x14]
call fcn.00403570
mov byte [ebp - 4], 0x10
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.00402510
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4240cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, edi
mov ecx, edi
call fcn.00422100
mov byte [ebp - 4], 0
test esi, esi
je 0x4240fc
push esi
call fcn.004ac575
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
add esp, 4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret