Function at 0x140053160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1e0
mov qword [rsp + 0x180], 0xfffffffffffffffe
mov qword [rsp + 0x228], rbx
mov r15, r9
mov rdi, rdx
mov r13, rcx
mov eax, dword [r9 + 0x10]
sub eax, dword [r9 + 8]
add eax, 0x3f
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
movsxd rcx, eax
mov eax, dword [r9 + 0x14]
sub eax, dword [r9 + 0xc]
add eax, 0x3f
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
movsxd r8, eax
imul r8, rcx
imul r8, r8, 0x5001
add r8, 4
mov rdx, rdi
mov rcx, r13
call fcn.140053d80
mov ebp, dword [r13 + 0x58]
test rbp, rbp
jne 0x14005324a
lea rdx, str.https:__www.reveltronics.com_images_slider_home_slider3_egt.jpg
mov rcx, qword [r13 + 8]
call fcn.14006b2b0
mov ecx, dword [r15 + 0x10]
sub ecx, dword [r15 + 8]
test ecx, ecx
jle 0x140053d57
mov eax, dword [r15 + 0x14]
sub eax, dword [r15 + 0xc]
test eax, eax
jle 0x140053d57
imul eax, ecx
test eax, eax
je 0x140053d57
lea rdx, str.Corrupted_data_in_zrle_decoder__rectangle_is_undefined.
mov rcx, qword [r13 + 8]
call fcn.14006b260
lea rdx, str.Possible__data_is_corrupted_or_error_in_server
mov rcx, qword [r13 + 8]
call fcn.14006b260
jmp 0x140053d57
mov ecx, 8
call fcn.1400797fc
xor esi, esi
test rax, rax
je 0x140053268
lea rcx, [rsp + 0x118]
mov qword [rax], rcx
jmp 0x14005326b
mov rax, rsi
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x130], rsi
mov qword [rsp + 0x138], rsi
mov qword [rsp + 0x140], rsi
xor r8d, r8d
mov rdx, rbp
lea rcx, [rsp + 0x118]
call fcn.14002f760
mov rbx, qword [r13 + 0x40]
cmp rbx, qword [r13 + 0x48]
jbe 0x1400532ad
call fcn.1400796a8
mov rdx, qword [r13 + 0x28]
test rdx, rdx
jne 0x1400532c0
call fcn.1400796a8
mov rdx, rsi
jmp 0x1400532c3
mov rdx, qword [rdx]
cmp rbx, qword [rdx + 0x20]
jb 0x1400532ce
call fcn.1400796a8
mov rdi, qword [r13 + 0x40]
cmp rdi, qword [r13 + 0x48]
jbe 0x1400532dd
call fcn.1400796a8
mov r11, qword [r13 + 0x28]
test r11, r11
jne 0x1400532f0
call fcn.1400796a8
mov r11, rsi
jmp 0x1400532f3
mov r11, qword [r11]
cmp rdi, qword [r11 + 0x20]
jb 0x1400532fe
call fcn.1400796a8
lea r8, [rbx + rbp]
movzx r9d, byte [rsp + 0x238]
mov rdx, rdi
lea rcx, [rsp + 0x118]
call fcn.140052c80
mov rdx, qword [rsp + 0x138]
mov rbx, rdx
mov rdi, qword [rsp + 0x130]
sub rbx, rdi
cmp rdi, rdx
jbe 0x14005333b
call fcn.1400796a8
mov rax, qword [rsp + 0x118]
test rax, rax
jne 0x140053352
call fcn.1400796a8
mov r11, rsi
jmp 0x140053355
mov r11, qword [rax]
cmp rdi, qword [r11 + 0x20]
jb 0x140053360
call fcn.1400796a8
lea rax, vtable.ByteArrayInputStream.0
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rdi
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xe8], rbx
lea rax, vtable.DataInputStream.0
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x110], rax
mov qword [r13 + 0xc8], rsi
mov rbx, qword [rsp + 0x230]
mov rax, qword [rbx]
lea rdx, [rsp + 0xb8]
mov rcx, rbx
call qword [rax + 0x90]
mov edi, 4
movzx eax, word [rsp + 0xb8]
cmp ax, 8
jne 0x1400533ec
mov qword [r13 + 0xc0], 1
jmp 0x140053487
cmp ax, 0x10
jne 0x140053402
mov qword [r13 + 0xc0], 2
jmp 0x140053487
cmp ax, 0x20
jne 0x140053487
movzx ecx, byte [rsp + 0xc2]
movzx edx, word [rsp + 0xbc]
shl edx, cl
mov ecx, dword [rsp + 0xc4]
movzx eax, word [rsp + 0xbe]
shl eax, cl
or edx, eax
movzx ecx, byte [rsp + 0xc6]
movzx eax, word [rsp + 0xc0]
shl eax, cl
or edx, eax
test edx, 0xff000000
jne 0x14005345d
mov qword [r13 + 0xc0], 3
mov qword [r13 + 0xc8], rsi
jmp 0x140053487
test dl, dl
jne 0x140053479
mov qword [r13 + 0xc0], 3
mov qword [r13 + 0xc8], 1
jmp 0x140053487
mov qword [r13 + 0xc0], rdi
mov qword [r13 + 0xc8], rsi
mov r12d, dword [r15 + 0xc]
mov dword [rsp + 0x30], r12d
cmp r12d, dword [r15 + 0x14]
jge 0x140053d11
lea rdx, vtable.Rect.0
lea rbp, vtable.Dimension.0
nop dword [rax + rax]
mov edi, dword [r15 + 8]
mov dword [rsp + 0x38], edi
mov r14d, dword [r15 + 0x10]
cmp edi, r14d
jge 0x1400539ac
lea ecx, [r12 + 0x40]
lea eax, [rdi + 0x40]
mov dword [rsp + 0x40], eax
nop word [rax + rax]
mov r15d, dword [r15 + 0x14]
cmp ecx, r15d
cmovl r15d, ecx
mov dword [rsp + 0x3c], r15d
cmp eax, r14d
cmovl r14d, eax
mov qword [rsp + 0xf0], rdx
mov dword [rsp + 0xf8], edi
mov dword [rsp + 0xfc], r12d
mov dword [rsp + 0x100], r14d
mov dword [rsp + 0x104], r15d
mov rax, qword [rbx]
lea rdx, [rsp + 0x188]
mov rcx, rbx
call qword [rax + 0x80]
lea rdx, [rsp + 0x1b0]
mov rcx, rax
call fcn.14000d790
lea r8, [rsp + 0xf0]
lea rdx, [rsp + 0x198]
mov rcx, rax
call fcn.14000d6c0
cmp edi, dword [rax + 8]
jne 0x140053578
cmp r12d, dword [rax + 0xc]
jne 0x140053578
cmp r14d, dword [rax + 0x10]
jne 0x140053578
cmp r15d, dword [rax + 0x14]
jne 0x140053578
mov eax, 1
jmp 0x14005357a
mov eax, esi
test al, al
sete al
mov qword [rsp + 0x188], rbp
test al, al
jne 0x140053bf9
sub r14d, edi
test r14d, r14d
jle 0x1400535a7
mov eax, r15d
sub eax, r12d
test eax, eax
jle 0x1400535a7
imul eax, r14d
jmp 0x1400535a9
mov eax, esi
cdqe
mov rdi, qword [r13 + 0xc0]
imul rdi, rax
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x1400535cf
lea rcx, [rsp + 0x48]
mov qword [rax], rcx
jmp 0x1400535d2
mov rax, rsi
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rsi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.14002f760
mov rdi, rsi
mov ebx, 1
nop
lea rdx, [rsp + rdi + 0x220]
mov r8, rbx
lea rcx, [rsp + 0xd0]
mov rax, qword [rsp + 0xd0]
call qword [rax + reloc.WS2_32.dll_htonl]
sub rbx, rax
add rdi, rax
cmp rdi, 1
jb 0x140053600
movzx edi, byte [rsp + 0x220]
test edi, edi
jne 0x1400536d0
test r14d, r14d
jle 0x14005364f
mov eax, r15d
sub eax, r12d
test eax, eax
jle 0x14005364f
imul eax, r14d
jmp 0x140053651
mov eax, esi
movsxd r12, eax
imul r12, qword [r13 + 0xc0]
mov rbx, qword [rsp + 0x60]
cmp rbx, qword [rsp + 0x68]
jbe 0x14005366d
call fcn.1400796a8
cmp qword [rsp + 0x48], 0
jne 0x14005367f
call fcn.1400796a8
mov rdx, rsi
jmp 0x140053687
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
cmp rbx, qword [rdx + 0x20]
jb 0x140053692
call fcn.1400796a8
mov rdi, rsi
mov rbp, r12
test r12, r12
je 0x14005386d
lea rdx, [rdi + rbx]
mov r8, rbp
lea rcx, [rsp + 0xd0]
mov rax, qword [rsp + 0xd0]
call qword [rax + reloc.WS2_32.dll_htonl]
sub rbp, rax
add rdi, rax
cmp rdi, r12
jb 0x1400536a1
mov r12d, dword [rsp + 0x30]
jmp 0x140053872
cmp edi, 1
jne 0x1400537d7
test r14d, r14d
jle 0x1400536ee
mov eax, r15d
sub eax, r12d
test eax, eax
jle 0x1400536ee
imul eax, r14d
jmp 0x1400536f0
mov eax, esi
movsxd rbp, eax
mov byte [rsp + 0x34], 0
mov byte [rsp + 0x35], 0
mov byte [rsp + 0x36], 0
mov byte [rsp + 0x37], 0
mov r12, qword [r13 + 0xc0]
mov rax, qword [r13 + 0xc8]
lea r15, [rsp + rax + 0x34]
mov rdi, rsi
mov rbx, r12
test r12, r12
je 0x140053755
nop word [rax + rax]
lea rdx, [rdi + r15]
mov r8, rbx
lea rcx, [rsp + 0xd0]
mov rax, qword [rsp + 0xd0]
call qword [rax + reloc.WS2_32.dll_htonl]
sub rbx, rax
add rdi, rax
cmp rdi, r12
jb 0x140053730
mov rbx, qword [rsp + 0x60]
cmp rbx, qword [rsp + 0x68]
jbe 0x140053766
call fcn.1400796a8
cmp qword [rsp + 0x48], 0
jne 0x140053778
call fcn.1400796a8
mov rdx, rsi
jmp 0x140053780
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
cmp rbx, qword [rdx + 0x20]
jb 0x14005378b
call fcn.1400796a8
test rbp, rbp
je 0x140053861
mov rdx, qword [r13 + 0xc0]
nop dword [rax + rax]
mov rax, qword [r13 + 0xc8]
lea rcx, [rbx + rax]
mov r8, rdx
lea rdx, [rsp + 0x34]
call fcn.14007ad70
mov rdx, qword [r13 + 0xc0]
add rbx, rdx
sub rbp, 1
jne 0x1400537a0
mov r15d, dword [rsp + 0x3c]
mov r12d, dword [rsp + 0x30]
jmp 0x140053872
lea eax, [rdi - 2]
cmp eax, 0xe
ja 0x140053800
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0xf0]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x108]
mov rcx, r13
call fcn.140054000
cmp edi, 0x80
jne 0x140053827
lea r9, [rsp + 0xf0]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x108]
mov rcx, r13
call fcn.1400542a0
jmp 0x140053872
cmp edi, 0x81
je 0x1400539c4
lea eax, [rdi - 0x82]
cmp eax, 0x7d
ja 0x140053872
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0xf0]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x108]
mov rcx, r13
call fcn.140054550
jmp 0x140053872
mov r15d, dword [rsp + 0x3c]
mov r12d, dword [rsp + 0x30]
jmp 0x140053872
mov r12d, dword [rsp + 0x30]
mov rbp, qword [r13 + 0xc0]
cmp rbp, 3
mov eax, 4
cmove rbp, rax
test r14d, r14d
jle 0x140053899
sub r15d, r12d
test r15d, r15d
jle 0x140053899
imul r15d, r14d
jmp 0x14005389c
mov r15d, esi
mov rbx, qword [rsp + 0x60]
cmp rbx, qword [rsp + 0x68]
jbe 0x1400538ad
call fcn.1400796a8
cmp qword [rsp + 0x48], 0
jne 0x1400538bf
call fcn.1400796a8
mov rdx, rsi
jmp 0x1400538c7
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
cmp rbx, qword [rdx + 0x20]
jb 0x1400538d2
call fcn.1400796a8
mov r12d, esi
test r15d, r15d
jle 0x140053935
mov esi, dword [rsp + 0x30]
nop
mov eax, r12d
cdq
idiv r14d
mov rcx, qword [rsp + 0x230]
mov rdi, qword [rcx]
lea r8d, [rax + rsi]
mov eax, dword [rsp + 0x38]
add edx, eax
call qword [rdi + 0xc8]
mov rdi, rax
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.140081300
mov r8, qword [r13 + 0xc0]
mov rdx, rbx
mov rcx, rdi
call fcn.14007ad70
add rbx, qword [r13 + 0xc0]
inc r12d
cmp r12d, r15d
jl 0x1400538e0
xor esi, esi
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x140053947
mov rcx, rbx
call fcn.140078e60
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rsi
mov rcx, qword [rsp + 0x48]
call fcn.140078e60
nop
mov edi, dword [rsp + 0x38]
add edi, 0x40
mov dword [rsp + 0x38], edi
mov eax, dword [rsp + 0x40]
add eax, 0x40
mov dword [rsp + 0x40], eax
mov r15, qword [rsp + 0x238]
mov r14d, dword [r15 + 0x10]
cmp edi, r14d
mov r12d, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x230]
lea ecx, [r12 + 0x40]
lea rbp, vtable.Dimension.0
lea rdx, vtable.Rect.0
jl 0x1400534e0
add r12d, 0x40
mov dword [rsp + 0x30], r12d
cmp r12d, dword [r15 + 0x14]
jge 0x140053d11
jmp 0x1400534b0
lea rbx, vtable.StringStorage.0
mov qword [rsp + 0x148], rbx
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x1400539ef
lea rcx, [rsp + 0x150]
mov qword [rax], rcx
jmp 0x1400539f2
mov rax, rsi
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x168], rsi
mov qword [rsp + 0x170], rsi
mov qword [rsp + 0x178], rsi
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x150]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x170]
mov rdi, rdx
mov rbp, qword [rsp + 0x168]
sub rdi, rbp
sar rdi, 1
add rdi, rdi
cmp rbp, rdx
jbe 0x140053a5e
call fcn.1400796a8
mov rax, qword [rsp + 0x150]
test rax, rax
jne 0x140053a75
call fcn.1400796a8
mov r11, rsi
jmp 0x140053a78
mov r11, qword [rax]
cmp rbp, qword [r11 + 0x20]
jb 0x140053a83
call fcn.1400796a8
mov r8, rdi
lea rdx, [0x1400d1b20]
mov rcx, rbp
call fcn.14007ad70
nop
mov r8d, 0x81
lea rdx, str.Error:_subencoding__d_of_Zrle_encoding_is_unused
lea rcx, [rsp + 0x148]
call fcn.14002ecb0
mov rbp, qword [rsp + 0x168]
cmp rbp, qword [rsp + 0x170]
jbe 0x140053ac7
call fcn.1400796a8
mov rax, qword [rsp + 0x150]
test rax, rax
jne 0x140053ade
call fcn.1400796a8
mov rdx, rsi
jmp 0x140053ae1
mov rdx, qword [rax]
cmp rbp, qword [rdx + 0x20]
jb 0x140053aec
call fcn.1400796a8
lea rax, vtable.Exception.0
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x238], rax
mov qword [rsp + 0x80], rbx
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x140053b2c
lea rcx, [rsp + 0x88]
mov qword [rax], rcx
jmp 0x140053b2f
mov rax, rsi
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xb0], rsi
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x88]
call fcn.14002bfc0
mov rdx, qword [rsp + 0xa8]
mov rdi, rdx
mov rbx, qword [rsp + 0xa0]
sub rdi, rbx
sar rdi, 1
add rdi, rdi
cmp rbx, rdx
jbe 0x140053b9b
call fcn.1400796a8
mov rax, qword [rsp + 0x88]
test rax, rax
jne 0x140053baf
call fcn.1400796a8
jmp 0x140053bb2
mov rsi, qword [rax]
cmp rbx, qword [rsi + 0x20]
jb 0x140053bbd
call fcn.1400796a8
mov r8, rdi
lea rdx, [0x1400d1b20]
mov rcx, rbx
call fcn.14007ad70
nop
mov rdx, rbp
lea rcx, [rsp + 0x80]
mov rax, qword [rsp + 0x80]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [0x140101ad0]
lea rcx, [rsp + 0x78]
call fcn.14007c4b0
nop
lea rax, vtable.Exception.0
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x238], rax
lea rbx, vtable.StringStorage.0
mov qword [rsp + 0x80], rbx
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x140053c40
lea rcx, [rsp + 0x88]
mov qword [rax], rcx
jmp 0x140053c43
mov rax, rsi
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xb0], rsi
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x88]
call fcn.14002bfc0
mov rdx, qword [rsp + 0xa8]
mov rdi, rdx
mov rbx, qword [rsp + 0xa0]
sub rdi, rbx
sar rdi, 1
add rdi, rdi
cmp rbx, rdx
jbe 0x140053caf
call fcn.1400796a8
mov rax, qword [rsp + 0x88]
test rax, rax
jne 0x140053cc3
call fcn.1400796a8
jmp 0x140053cc6
mov rsi, qword [rax]
cmp rbx, qword [rsi + 0x20]
jb 0x140053cd1
call fcn.1400796a8
mov r8, rdi
lea rdx, [0x1400d1b20]
mov rcx, rbx
call fcn.14007ad70
nop
lea rdx, str.Error_in_protocol:_incorrect_size_of_tile__zrle_decoder_
lea rcx, [rsp + 0x80]
mov rax, qword [rsp + 0x80]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [0x140101ad0]
lea rcx, [rsp + 0x78]
call fcn.14007c4b0
nop
lea rax, vtable.InputStream.0
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0x130]
test rcx, rcx
je 0x140053d32
call fcn.140078e60
mov qword [rsp + 0x130], rsi
mov qword [rsp + 0x138], rsi
mov qword [rsp + 0x140], rsi
mov rcx, qword [rsp + 0x118]
call fcn.140078e60
mov rbx, qword [rsp + 0x228]
add rsp, 0x1e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret