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

Disassembly:
push rbx
sub rsp, 0x30
mov edx, 0x409
mov dword [0x180178d50], 2
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
lea r8, reloc.WS2_32.dll_closesocket
xor r9d, r9d
mov rbx, rax
lea ecx, [rdx + 0x68]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [reloc.WS2_32.dll_closesocket]
lea r8, [0x1800088bc]
mov edx, 3
mov qword [0x180174850], rbx
test eax, eax
cmove ecx, edx
mov edx, 0xfffffffc
mov dword [reloc.WS2_32.dll_closesocket], ecx
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
lea r8, [0x180174838]
mov edx, 0xffffffeb
mov rcx, rbx
mov qword [0x180174858], rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov edx, 0xfffffff0
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, 1
lea rcx, [0x180174838]
mov dword [0x180174864], eax
call fcn.1800084f8
mov rcx, qword [0x180174850]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [0x180174870]
xor r9d, r9d
xor r8d, r8d
mov qword [0x180174848], rcx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x180174848]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
and dword [0x180174860], 0
mov ebx, 0x7d00
cmp eax, ebx
mov dword [0x180174840], eax
cmovb ebx, eax
mov ecx, ebx
call fcn.180021c94
mov qword [0x180174838], rax
test rax, rax
jne 0x1800055dc
call fcn.180008c78
jmp 0x1800055ff
and dword [rsp + 0x48], 0
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], 0
mov r8d, ebx
mov rcx, qword [0x180174848]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, 1
lea rcx, [0x180174838]
call fcn.1800084f8
mov edx, 1
lea rcx, [0x180174838]
call fcn.1800084f8
mov rcx, qword [0x180174850]
xor r8d, r8d
xor edx, edx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_InvalidateRect]
sbb dword [rcx + 0x6bf0331a], esi
add al, 8
add al, 8
mov cl, 0x1a
xor esi, eax
imul eax, dword [rbx + 4], 8
add al, 8
add al, 8
push rsp
invalid
xor dword [rbx + rdx*4], 0xffffffcf
invalid
in al, dx
adc byte [rbp + 0x435f5540], dh
push rbp
pop rdi
invalid
ja 0x18008042d
mov al, byte [rbx + 0x1c08c8ce]
mov eax, 0xabb9055f
xchg dword [rbp + 0x63c350d2], eax
sbb al, 0xb8
pop rdi
add eax, 0x8587abb9
rcl byte [rax - 0x3d], cl
invalid
mov ecx, 0xd28587ab
push rax
ret
cmpsb byte [rsi], byte [rdi]
int3
test ebx, eax
pop rsp
enter 0xffffffffffff8585, 0xfffffffffffffffd
stosb byte [rdi], al
add eax, 0xb7a2cad5
invalid
imul rsi, qword [rdi + rdx*8 + 0x36], 0x3d
mov cl, 3
jle 0x18008042e
outsb dx, byte [rsi]
call 0x1acf276e1
sub al, 0x1a
jl 0x18008045e
invalid
js 0x18008052f
sub al, 0x1a
jl 0x18008045e
movabs dword [0xa63e36e1b05f7c78], eax
pop rdi
mov al, 0xe1
cmpsb byte ds:[rsi], byte [rdi]
or esi, eax
invalid
pop rbp
imul dword [rdx + 0x4a]
jae 0x180080453
add al, 0xe1
mov ah, 0x96
mov bl, 0x4f
mov ch, 0x28
clc
adc dh, byte [rax]
adc byte [rdi], bh
mov al, 0xe0
cwde
lea edi, ss:[rdx + 0x601ed3b8]
jl 0x180080475
loop 0x1800804df
call qword [rax]
sbb esp, dword [rbx - 0xb553ba7]
test al, 0x3a
mov dh, byte [rcx + 0x7b]
jno 0x180080567
adc byte [rbx], bl
movabs dword [0x718a3aa8f4aac459], eax
jno 0x180080567
pop rbx
stosb byte [rdi], al
hlt
pop rbx
jne 0x1800804e5
push rbx
jne 0x180080565
invalid
mov bl, 0x36
invalid
in eax, dx
pop rax
push rsp
jmp 0x180080517
out dx, eax
invalid
xor ebx, dword [rdx]
xchg ebx, eax
jg 0x1800804e5
invalid
push rcx
jnp 0x18008059d
adc byte [rdx], dl
or eax, 0x68d2543b
invalid
scasb al, byte [rdi]
insd dword [rdi], dx
loope 0x18008056c
xlatb
or byte [rcx + 0x62a35f53], al
invalid
pop rdi
jp 0x1800805b3
xlatb
cmp ah, bh
lahf
sbb al, 0x1a
xor al, 0x8b
mov dh, 1
add edx, eax
jp 0x180080520
fnstenv [rdx - 0x6013520e]
lahf
sub edx, ecx
add eax, 0x3ed15b3
adc ecx, esp
add esi, edx
adc ecx, esp
jmp 0x18008051d
enter 0xffffffffffffcbcd, 0x6f
ror byte [rbx + 0x966c8d7], 1
or word [rbp + rbp - 0x4f], sp
test byte [rdx], al
pop rbx
movabs dword [0x143fd0cebe004b91], eax
jnp 0x1800805c6
invalid
ror byte ss:[rcx], 0x87
and dword [rdx], eax
push rsp
fnstenv [rdx]
cld
add byte [rax + 0x64], dl
cwde
cwde
pop rbp
or byte [rsi + 0xd], ah
pushfq
test eax, 0xc999b49c
ret
and cl, cl
xchg dword [rdi + 0x73], esi
add byte [r15 + 0x3c905ac3], bl
invalid
jl 0x1800805df
jl 0x180080677
add al, 0xe1
add dword [rdx], edi
jns 0x1800806a5
test al, 0xc4
cdq
xchg r11, rax
jle 0x1800806be
lodsb al, byte [rsi]
invalid
jns str._wsA
pop rbp
or byte [rcx - 0x27], dh
xchg ebp, eax
sbb ebp, dword [rbx - 0x61146559]
push 0xffffffffffffffd8
cwde
sub dl, byte [0x1ef54b1f7]
adc eax, 0x6f4cab8e
adc eax, 0x6f4cab8e
mov gs, word [rbx - 0x302c90b4]
ror edi, cl
invalid
ja 0x1800806ed
je 0x18008067e
add al, 0xf
sal dh, 1
or byte [rbp + riz*4 + 0x913936], cl
invalid
mov word [rbp + 0x913936], fs
invalid
mov bh, 0xd5
rcl byte [rsi + 0x60a24dec], cl
xchg word [rax - 0x1999bc78], di
scasb al, byte [rdi]
jge 0x180080665
invalid
movabs dword [0x7c8c084195da7b52], eax
sub esi, eax
cmp al, 0xe4
cmp dword [rsp + rbp - 0x7997a302], ebx
invalid
pop rsp
push 0xffffffff941ed286
popfq
invalid
invalid
neg byte [rcx]
invalid
invalid
cmp al, 0x70
invalid
sub dword [rdx + 0x1c9e1a2d], esi
invalid
cmpsb byte [rsi], byte [rdi]
push rdx
sbb dword [rax], ebp
add byte [rdx - 0x5264f047], dh
lodsd eax, dword [rsi]
outsw dx, word [rsi]
std
add esp, dword [rbx]
insd dword [rdi], dx
push rdi
int1
movabs al, byte [0xa1cc2ebbf4bc0e2]
jb case.0x180005632.25
ror byte [rbx - 0x41], 0xeb
ret 0xa1c
xchg edx, eax
add eax, 0xafef9ae
stc
dec byte [rdx]
invalid
stc
dec byte [rdx]
invalid
xor al, 0x54
push rdi
test eax, 0x2f947acc
invalid
and edx, dword [0x1632eb85b]
jnp 0x180080753
xchg edx, eax
push rbp
invalid
and al, 0xe1
invalid
mov edx, 0xe54c87d0
or ecx, dword [rbp - 0x2b]
mov dh, 0x18
jl 0x18008074f
adc eax, 0x93b70005
xor al, 0xc0
add eax, 0x3493b700
xor al, 0xc0
mov cl, 0x30
push rax
jns 0x180080739
jge 0x180080799
mov cl, 0x30
push rax
jns 0x180080739
jge 0x180080799
or byte [rsi], bpl
invalid
and dword [rbp - 0x2a], 0xa5832aba
int 0x5b
push rdi
invalid
sub al, byte [rbx + 0x575bcda5]
invalid
sub dword [rdi - 0xeeea60d], esi
adc dh, byte [rcx*4 - 0x5b42be0a]
cmp al, 0x1d
mov ah, byte [rbp + 0x5e]
pop rsi
pop rsi
js 0x1800806f8
invalid
add dword [rcx + 0x72], 0xffffff9b
wait
shr dword [rsi], 0x92
invalid
xor ch, bl
invalid
jl 0x1800807b6
test byte [rdi - 0x1c], bh
jg 0x18008077f
pop rsi
out 0x42, al
adc eax, 0xc5166edc
ret
pushfq
or bh, al
or dword [esi - 0x60], ebx
xchg bpl, r10b
je 0x180080830
test dword [rbp + 0x4b229fde], 0xa49d002d
outsd dx, dword [rsi]
or eax, 0xa8d0da91
je 0x18008082b
invalid
mov dh, cl
cmpsb byte [rsi], byte [rdi]
lodsb al, byte [rsi]
sbb byte [rsi + 0x28], ah
stosb byte [rdi], al
xchg dword [rbp + 0x6561d902], edx
sbb eax, 0x2625b815
invalid
jae 0x1800808a1
sub byte [rdx - 0x26fd6a79], ch
invalid
pop rax
in eax, dx
push rsp
jnp 0x180080895
xchg edx, eax
pop rsp
pop r8
invalid
invalid
invalid
cmpsd dword [rsi], dword [rdi]
sal ebp, cl
leave
add al, byte [0x1be4ad19e]
invalid