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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
mov rbp, rsp
mov qword [rbp + 0x68], rbp
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], rdx
mov rcx, qword [rbp + 0x100]
add rcx, 0xc
call fcn.00411fa0
test eax, eax
je 0x598e64
mov rcx, qword [rbp + 0x100]
add rcx, 0xc
call fcn.00411fb0
test eax, eax
je 0x598e64
call fcn.00545190
mov qword [rbp + 0x88], rax
mov rcx, qword [rbp + 0x88]
mov rax, qword [rbp + 0x88]
mov rax, qword [rax]
call qword [rax + 0x88]
test al, al
je 0x598e64
mov rcx, qword [rbp + 0x100]
call fcn.005971d0
mov qword [rbp + 0xb0], rax
cmp qword [rbp + 0xb0], 0
je 0x598e64
mov qword [rbp + 0xa8], 0
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax + 0x20]
call fcn.0059b600
cmp byte [rax + 0x496], 2
jne 0x5983da
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax + 0x20]
call fcn.0059b600
mov qword [rbp + 0x80], rax
mov rcx, qword [rbp + 0x80]
call fcn.00583690
test rax, rax
je 0x5983da
mov rcx, qword [rbp + 0x80]
call fcn.00583690
cmp byte [rax + 0x495], 0
je 0x5983da
mov rcx, qword [rbp + 0x80]
call fcn.00583690
cmp qword [rax + 0x4c0], 0
je 0x5983da
mov rcx, qword [rbp + 0x80]
call fcn.00583690
mov rax, qword [rax + 0x4c0]
mov rcx, qword [rax + 0x70]
call fcn.00570df0
test eax, eax
jle 0x5983da
mov rcx, qword [rbp + 0x80]
call fcn.00583690
mov rcx, rax
call fcn.004b3a10
mov rcx, qword [rbp + 0x100]
mov rcx, qword [rcx + 0x20]
cmp rax, qword [rcx + 0x58]
je 0x5983da
mov rcx, qword [rbp + 0x80]
call fcn.00583690
mov rax, qword [rax + 0x4c0]
mov qword [rbp + 0xa8], rax
mov rcx, qword [0x00480168]
mov dl, 1
call fcn.0048b790
mov qword [rbp + 0xc8], rax
nop
mov rcx, qword [rbp + 0x100]
add rcx, 0xc
call fcn.00411fa0
mov ebx, eax
mov rcx, qword [rbp + 0x100]
add rcx, 0xc
call fcn.00411fb0
mov rcx, qword [rbp + 0xc8]
mov edx, ebx
mov r8d, eax
mov rax, qword [rbp + 0xc8]
mov rbx, qword [rax]
call qword [rbx + 0xd8]
mov rcx, qword [rbp + 0xc8]
call fcn.0048ca10
mov rcx, rax
call fcn.00484b60
mov rcx, rax
call sub.gdi32.dll_SaveDC
mov dword [rbp + 0xc4], eax
nop
mov rcx, qword [rbp + 0x88]
lea rdx, [rbp + 0xb8]
mov r8b, 0xa
mov rax, qword [rbp + 0x88]
mov rbx, qword [rax]
call qword [rbx + 0x138]
mov rcx, qword [rbp + 0xc8]
call fcn.0048ca10
mov rcx, rax
call fcn.00484b60
mov rbx, rax
mov rcx, qword [rbp + 0xc8]
mov rax, qword [rbp + 0xc8]
mov rax, qword [rax]
call qword [rax + 0x60]
mov esi, eax
mov rcx, qword [rbp + 0xc8]
mov rax, qword [rbp + 0xc8]
mov rax, qword [rax]
call qword [rax + 0x48]
lea rcx, [rbp + 0x58]
xor rdx, rdx
xor r8, r8
mov r9d, esi
mov dword [rsp + 0x20], eax
call fcn.00412200
mov rcx, qword [rbp + 0x88]
mov rdx, rbx
lea r8, [rbp + 0xb8]
lea r9, [rbp + 0x58]
mov qword [rsp + 0x20], 0
call fcn.00545ce0
nop
mov rcx, qword [rbp + 0xc8]
call fcn.0048ca10
mov rcx, rax
call fcn.00484b60
mov rcx, rax
mov edx, dword [rbp + 0xc4]
call sub.gdi32.dll_RestoreDC
mov rcx, qword [rbp + 0xc8]
call fcn.0048ca10
mov rax, qword [rax + 0x70]
mov rcx, rax
mov rdx, qword [0x0061aa50]
mov rdx, qword [rdx + 0x100]
mov rbx, qword [rax]
call qword [rbx + 0x10]
mov rcx, qword [rbp + 0xc8]
call fcn.0048ca10
mov rcx, qword [rax + 0x80]
mov dl, 1
call fcn.00482e50
mov rax, qword [rbp + 0x100]
cmp byte [rax + 0xc1], 0
je 0x598570
mov rcx, qword [rbp + 0x100]
call fcn.00596010
test al, al
jne 0x598575
xor rax, rax
jmp 0x598577
mov al, 1
mov byte [rbp + 0x93], al
cmp byte [rbp + 0x93], 0
je 0x5985f2
mov rcx, qword [rbp + 0xc8]
call fcn.0048ca10
mov rcx, rax
call fcn.00484b60
mov rbx, rax
mov rcx, qword [rbp + 0x100]
call fcn.00595e60
mov rcx, rax
call fcn.0048f890
mov rcx, rbx
mov edx, 2
mov r8d, 2
mov r9, rax
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 3
call sub.user32.dll_DrawIconEx
mov rcx, rbp
mov rdx, qword [rbp + 0xb0]
mov r8, qword [rbp + 0xa8]
call fcn.00597ff0
mov rcx, qword [rbp + 0x100]
mov dword [rcx + 0x3c], eax
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x10]
cmp byte [rax + 0xa1], 1
sete al
mov byte [rbp + 0x92], al
mov ecx, 0xf
call sub.user32.dll_GetSystemMetrics
mov dword [rbp + 0x94], eax
cmp byte [rbp + 0x92], 0
jne 0x59866e
cmp byte [rbp + 0x93], 0
je 0x598662
mov eax, dword [rbp + 0x94]
mov dword [rbp + 0xa0], eax
jmp 0x5986b8
mov dword [rbp + 0xa0], 0
jmp 0x5986b8
mov rax, qword [rbp + 0x100]
cmp byte [rax + 0xc1], 0
je 0x5986a2
mov rcx, qword [rbp + 0x100]
add rcx, 0xc
call fcn.00411fa0
mov ecx, dword [rbp + 0x94]
lea rcx, [rcx + rcx*2]
sub eax, ecx
mov dword [rbp + 0xa0], eax
jmp 0x5986b8
mov rcx, qword [rbp + 0x100]
add rcx, 0xc
call fcn.00411fa0
mov dword [rbp + 0xa0], eax
mov dword [rbp + 0x9c], 0
xor rax, rax
mov rcx, qword [rbp + 0x100]
mov ebx, dword [rcx + 0x3c]
sub ebx, 1
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], ebx
jg 0x598aef
add ebx, 1
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rbp + 0xa4]
add rcx, rcx
add rcx, rcx
mov edx, dword [rbp + 0xa4]
mov dword [rax + rcx*8], edx
mov rcx, qword [rbp + 0xc8]
call fcn.0048ca10
mov rcx, qword [rbp + 0x100]
mov rdx, qword [rbp + 0x100]
mov rdx, qword [rdx + 0x40]
movsxd r8, dword [rbp + 0xa4]
add r8, r8
add r8, r8
mov rdx, qword [rdx + r8*8 + 8]
mov r8, rax
call fcn.005978c0
mov dword [rbp + 0x98], eax
cmp dword [rbp + 0x98], 0
jne 0x598793
lea rcx, [rbp + 0x58]
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
call fcn.00412200
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rbp + 0xa4]
add rcx, rcx
add rcx, rcx
lea rdi, [rax + rcx*8 + 0x10]
lea rsi, [rbp + 0x58]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
jmp 0x598adc
cmp byte [rbp + 0x92], 0
jne 0x5988b2
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rbp + 0xa4]
add rcx, rcx
add rcx, rcx
mov edx, dword [rbp + 0xa0]
mov dword [rax + rcx*8 + 0x10], edx
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rbp + 0xa4]
add rcx, rcx
add rcx, rcx
mov rdx, qword [rbp + 0x100]
mov rdx, qword [rdx + 0x40]
movsxd r8, dword [rbp + 0xa4]
add r8, r8
add r8, r8
mov edx, dword [rdx + r8*8 + 0x10]
add edx, dword [rbp + 0x98]
mov dword [rax + rcx*8 + 0x18], edx
mov rcx, qword [rbp + 0x100]
add rcx, 0xc
call fcn.00411fa0
mov rcx, qword [rbp + 0x100]
mov rcx, qword [rcx + 0x40]
movsxd rdx, dword [rbp + 0xa4]
add rdx, rdx
add rdx, rdx
cmp dword [rcx + rdx*8 + 0x18], eax
jle 0x59888b
cmp dword [rbp + 0xa0], 0
je 0x59888b
mov ecx, 0xf
call sub.user32.dll_GetSystemMetrics
add dword [rbp + 0x9c], eax
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rbp + 0xa4]
add rcx, rcx
add rcx, rcx
mov dword [rax + rcx*8 + 0x10], 0
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rbp + 0xa4]
add rcx, rcx
add rcx, rcx
mov edx, dword [rbp + 0x98]
mov dword [rax + rcx*8 + 0x18], edx
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rbp + 0xa4]
add rcx, rcx
add rcx, rcx
mov eax, dword [rax + rcx*8 + 0x18]
mov dword [rbp + 0xa0], eax
jmp 0x598a33
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rbp + 0xa4]
add rcx, rcx
add rcx, rcx
mov edx, dword [rbp + 0xa0]
sub edx, dword [rbp + 0x98]
mov dword [rax + rcx*8 + 0x10], edx
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rbp + 0xa4]
add rcx, rcx
add rcx, rcx
mov rdx, qword [rbp + 0x100]
mov rdx, qword [rdx + 0x40]
movsxd r8, dword [rbp + 0xa4]
add r8, r8
add r8, r8
mov edx, dword [rdx + r8*8 + 0x10]
add edx, dword [rbp + 0x98]
mov dword [rax + rcx*8 + 0x18], edx
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rbp + 0xa4]
add rcx, rcx
add rcx, rcx
cmp dword [rax + rcx*8 + 0x10], 0
jge 0x598a11
cmp dword [rbp + 0xa0], 0
je 0x598a11
mov ecx, 0xf
call sub.user32.dll_GetSystemMetrics
add dword [rbp + 0x9c], eax
mov rax, qword [rbp + 0x100]
cmp byte [rax + 0xc1], 0
je 0x5989a6
mov rcx, qword [rbp + 0x100]
add rcx, 0xc
call fcn.00411fa0
mov rcx, qword [rbp + 0x100]
mov rcx, qword [rcx + 0x40]
movsxd rdx, dword [rbp + 0xa4]
add rdx, rdx
add rdx, rdx
mov r8d, dword [rbp + 0x94]
lea r8, [r8 + r8*2]
sub eax, r8d
mov dword [rcx + rdx*8 + 0x18], eax
jmp 0x5989d2
mov rcx, qword [rbp + 0x100]
add rcx, 0xc
call fcn.00411fa0
mov rcx, qword [rbp + 0x100]
mov rcx, qword [rcx + 0x40]
movsxd rdx, dword [rbp + 0xa4]
add rdx, rdx
add rdx, rdx
mov dword [rcx + rdx*8 + 0x18], eax
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rbp + 0xa4]
add rcx, rcx
add rcx, rcx
mov rdx, qword [rbp + 0x100]
mov rdx, qword [rdx + 0x40]
movsxd r8, dword [rbp + 0xa4]
add r8, r8
add r8, r8
mov edx, dword [rdx + r8*8 + 0x18]
sub edx, dword [rbp + 0x98]
mov dword [rax + rcx*8 + 0x10], edx
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rbp + 0xa4]
add rcx, rcx
add rcx, rcx
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [rbp + 0xa0], eax
mov rax, qword [rbp + 0x100]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rbp + 0xa4]
add rcx, rcx
add rcx, rcx
mov edx, dword [rbp + 0x9c]
mov dword [rax + rcx*8 + 0x14], edx
mov ecx, 0xf
call sub.user32.dll_GetSystemMetrics
mov rcx, qword [rbp + 0x100]
mov rcx, qword [rcx + 0x40]
movsxd rdx, dword [rbp + 0xa4]
add rdx, rdx
add rdx, rdx
mov r8, qword [rbp + 0x100]
mov r8, qword [r8 + 0x40]
movsxd r9, dword [rbp + 0xa4]
add r9, r9
add r9, r9
mov r8d, dword [r8 + r9*8 + 0x14]
add r8d, eax
mov dword [rcx + rdx*8 + 0x1c], r8d
mov rcx, qword [rbp + 0xc8]
call fcn.0048ca10
mov rcx, qword [rbp + 0x100]
mov rdx, qword [rbp + 0x100]
movsxd r8, dword [rbp + 0xa4]
add r8, r8
add r8, r8
add r8, r8
add r8, r8
add r8, r8
mov rdx, qword [rdx + 0x40]
add rdx, r8
mov r8, rax
call fcn.005979b0
add dword [rbp + 0xa4], 1
cmp dword [rbp + 0xa4], ebx
jne 0x5986e7
nop
mov rcx, qword [rbp + 0xc8]
mov rax, qword [rbp + 0xc8]
mov rax, qword [rax]
call qword [rax + 0x60]
mov dword [rbp + 0xa0], eax
mov rcx, qword [rbp + 0xc8]
mov rax, qword [rbp + 0xc8]
mov rax, qword [rax]
call qword [rax + 0x48]
sub eax, dword [rbp + 0x94]
mov dword [rbp + 0x9c], eax
mov rax, qword [rbp + 0x100]
cmp byte [rax + 0xc1], 0
je 0x598e24
mov dword [rbp + 0xa4], 0
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rbp + 0xa4]
lea rcx, [rcx + rcx*2]
mov edx, dword [rbp + 0xa4]
mov dword [rax + rcx*8 + 0x50], edx
mov eax, dword [rbp + 0xa4]
sub eax, 1
cmp eax, 0xffffffff
je 0x598b8a
test eax, eax
je 0x598c17
sub eax, 1
test eax, eax
jne 0x598d26
jmp 0x598ca4
mov rax, qword [rbp + 0x100]
mov ecx, dword [rbp + 0xa4]
cmp ecx, dword [rax + 0x48]
jne 0x598bcd
mov rax, qword [rbp + 0x100]
mov ecx, dword [rbp + 0xa4]
cmp ecx, dword [rax + 0xbc]
jne 0x598bcd
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rbp + 0xa4]
lea rcx, [rcx + rcx*2]
mov byte [rax + rcx*8 + 0x54], 0x3e
jmp 0x598d26
mov rax, qword [rbp + 0x100]
mov ecx, dword [rbp + 0xa4]
cmp ecx, dword [rax + 0x48]
jne 0x598bfb
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rbp + 0xa4]
lea rcx, [rcx + rcx*2]
mov byte [rax + rcx*8 + 0x54], 0x3d
jmp 0x598d26
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rbp + 0xa4]
lea rcx, [rcx + rcx*2]
mov byte [rax + rcx*8 + 0x54], 0x3c
jmp 0x598d26
mov rax, qword [rbp + 0x100]
mov ecx, dword [rbp + 0xa4]
cmp ecx, dword [rax + 0x48]
jne 0x598c5a
mov rax, qword [rbp + 0x100]
mov ecx, dword [rbp + 0xa4]
cmp ecx, dword [rax + 0xbc]
jne 0x598c5a
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rbp + 0xa4]
lea rcx, [rcx + rcx*2]
mov byte [rax + rcx*8 + 0x54], 0x46
jmp 0x598d26
mov rax, qword [rbp + 0x100]
mov ecx, dword [rbp + 0xa4]
cmp ecx, dword [rax + 0x48]
jne 0x598c88
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rbp + 0xa4]
lea rcx, [rcx + rcx*2]
mov byte [rax + rcx*8 + 0x54], 0x45
jmp 0x598d26
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rbp + 0xa4]
lea rcx, [rcx + rcx*2]
mov byte [rax + rcx*8 + 0x54], 0x44
jmp 0x598d26
mov rax, qword [rbp + 0x100]
mov ecx, dword [rbp + 0xa4]
cmp ecx, dword [rax + 0x48]
jne 0x598ce4
mov rax, qword [rbp + 0x100]
mov ecx, dword [rbp + 0xa4]
cmp ecx, dword [rax + 0xbc]
jne 0x598ce4
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rbp + 0xa4]
lea rcx, [rcx + rcx*2]
mov byte [rax + rcx*8 + 0x54], 0x2e
jmp 0x598d26
mov rax, qword [rbp + 0x100]
mov ecx, dword [rbp + 0xa4]
cmp ecx, dword [rax + 0x48]
jne 0x598d0f
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rbp + 0xa4]
lea rcx, [rcx + rcx*2]
mov byte [rax + rcx*8 + 0x54], 0x2d
jmp 0x598d26
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rbp + 0xa4]
lea rcx, [rcx + rcx*2]
mov byte [rax + rcx*8 + 0x54], 0x2c
lea rcx, [rbp + 0x58]
mov edx, dword [rbp + 0xa0]
sub edx, dword [rbp + 0x94]
mov r8d, dword [rbp + 0x9c]
mov r9d, dword [rbp + 0xa0]
mov eax, dword [rbp + 0x9c]
add eax, dword [rbp + 0x94]
mov dword [rsp + 0x20], eax
call fcn.00412200
mov rax, qword [rbp + 0x100]
movsxd rcx, dword [rbp + 0xa4]
lea rcx, [rcx + rcx*2]
lea rdi, [rax + rcx*8 + 0x58]
lea rsi, [rbp + 0x58]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
mov rcx, qword [rbp + 0x88]
lea rdx, [rbp + 0xb8]
mov rax, qword [rbp + 0x100]
movsxd r8, dword [rbp + 0xa4]
lea r8, [r8 + r8*2]
movzx r8, byte [rax + r8*8 + 0x54]
mov rax, qword [rbp + 0x88]
mov rbx, qword [rax]
call qword [rbx + 0x1f8]
mov rcx, qword [rbp + 0xc8]
call fcn.0048ca10
mov rcx, rax
call fcn.00484b60
mov rcx, qword [rbp + 0x88]
mov rdx, rax
lea r8, [rbp + 0xb8]
movsxd rax, dword [rbp + 0xa4]
lea rax, [rax + rax*2]
add rax, rax
add rax, rax
add rax, rax
mov r9, qword [rbp + 0x100]
add r9, rax
add r9, 0x58
mov qword [rsp + 0x20], 0
call fcn.00545ce0
mov eax, dword [rbp + 0x94]
sub dword [rbp + 0xa0], eax
add dword [rbp + 0xa4], 1
cmp dword [rbp + 0xa4], 3
jne 0x598b48
nop
mov rcx, qword [rbp + 0x108]
mov rax, qword [rbp + 0x100]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp + 0x100]
mov r8d, dword [rax + 0x10]
mov r9, qword [rbp + 0xc8]
mov rax, qword [rbp + 0x108]
mov rbx, qword [rax]
call qword [rbx + 0x88]
nop
mov rcx, qword [rbp + 0xc8]
call fcn.004075c0
lea rsp, [rbp + 0xd8]
pop rbx
pop rsi
pop rdi
pop rbp
ret