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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x1b8
mov qword [rsp + 0x130], 0x7bed
mov rax, qword [0x1800a66a0]
mov byte [rsp + 0x34], al
mov rax, qword [0x1800a66e0]
mov byte [rsp + 0x32], al
movzx eax, word [0x1800a65fc]
movzx eax, ax
mov dword [rsp + 0x4c], eax
movzx eax, word [0x1800a66b4]
movsx rax, ax
mov qword [rsp + 0x138], rax
mov dword [rsp + 0x44], 0x11
mov byte [rsp + 0x30], 0x2c
mov byte [rsp + 0x3c], 0x22
mov eax, 0x54a2
mov word [rsp + 0x64], ax
mov dword [rsp + 0xc4], 0xf9d3f638
mov dword [rsp + 0xc8], 0x7baa
mov dword [rsp + 0x68], 0xfae6
mov eax, 0x43
mov word [rsp + 0x38], ax
mov dword [rsp + 0xa8], 0x5224cc22
mov rax, qword [0x1800a66e0]
mov byte [rsp + 0x35], al
mov eax, dword [0x1800a663c]
mov word [rsp + 0x60], ax
mov byte [rsp + 0x49], 0xe3
movzx eax, byte [0x1800a66c4]
mov byte [rsp + 0x33], al
mov byte [rsp + 0x31], 0x9e
mov byte [rsp + 0x4a], 0x95
movzx eax, byte [0x1800a65fe]
movsx eax, al
mov dword [rsp + 0x100], eax
mov qword [rsp + 0xe0], 0x5e
movzx eax, word [0x1800a6698]
mov word [rsp + 0xc0], ax
movzx eax, word [0x1800a65fc]
mov byte [rsp + 0x48], al
mov eax, 0xffffa1d7
mov word [rsp + 0x50], ax
movsx eax, word [0x1800a6690]
mov dword [rsp + 0x104], eax
mov eax, 0x56eb
mov word [rsp + 0xd4], ax
movzx eax, byte [0x1800a65a6]
movzx eax, al
mov dword [rsp + 0x108], eax
mov byte [rsp + 0x5c], 0x4d
mov rax, qword [0x1800a6670]
mov qword [rsp + 0x140], rax
mov eax, dword [0x1800a66c8]
mov dword [rsp + 0x10c], eax
movabs rax, 0xf5cc81ee65b7a
mov qword [rsp + 0x148], rax
movzx eax, byte [0x1800a6567]
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x110], 0x39a4337f
mov rax, qword [0x1800a66a0]
mov qword [rsp + 0x158], rax
movzx eax, word [0x1800a6694]
movzx eax, ax
movzx ecx, word [0x1800a669c]
cmp eax, ecx
jge 0x18005935a
mov dword [rsp + 0x80], 1
jmp 0x180059365
mov dword [rsp + 0x80], 0
movzx eax, word [0x1800a6694]
movzx eax, ax
cmp eax, 0x4b
jge 0x18005937e
mov dword [rsp + 0x7c], 1
jmp 0x180059386
mov dword [rsp + 0x7c], 0
mov eax, dword [rsp + 0x7c]
cmp dword [rsp + 0x80], eax
jl 0x180059445
movzx eax, byte [rsp + 0x31]
cmp dword [0x1800a66ec], eax
jl 0x1800593b1
mov dword [rsp + 0x88], 1
jmp 0x1800593bc
mov dword [rsp + 0x88], 0
cmp dword [0x1800a66ec], 0x14
jl 0x1800593d2
mov dword [rsp + 0x84], 1
jmp 0x1800593dd
mov dword [rsp + 0x84], 0
mov eax, dword [rsp + 0x84]
cmp dword [rsp + 0x88], eax
jne 0x180059426
movzx eax, byte [rsp + 0x3c]
movzx eax, al
mov ecx, 8
imul rcx, rcx, 0x1ee
lea rdx, [0x18091bdc0]
mov qword [rdx + rcx], rax
movzx eax, byte [rsp + 0x31]
mov ecx, 4
imul rcx, rcx, 0x75
lea rdx, [0x180acbbd0]
mov dword [rdx + rcx], eax
jmp 0x180059440
cmp dword [rsp + 0x44], 0
je 0x180059440
movzx eax, byte [rsp + 0x32]
movzx eax, al
sub eax, 0xa24cf042
mov dword [0x1800a6624], eax
jmp 0x180059560
mov eax, dword [rsp + 0x68]
test eax, eax
jne 0x180059465
movsx eax, byte [rsp + 0x35]
not eax
test eax, eax
jne 0x180059465
mov dword [rsp + 0x90], 0
jmp 0x180059470
mov dword [rsp + 0x90], 1
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x4c], eax
je 0x180059487
mov dword [rsp + 0x8c], 1
jmp 0x180059492
mov dword [rsp + 0x8c], 0
mov eax, dword [rsp + 0x8c]
cmp dword [rsp + 0x90], eax
jle 0x1800594af
mov dword [rsp + 0x94], 1
jmp 0x1800594ba
mov dword [rsp + 0x94], 0
mov eax, dword [rsp + 0x94]
not eax
test eax, eax
je 0x1800594f3
movzx eax, byte [rsp + 0x34]
imul eax, dword [rsp + 0xc4]
mov byte [rsp + 0x34], al
movsx eax, byte [rsp + 0x35]
mov ecx, dword [rsp + 0x4c]
xor ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x4c]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x4c], eax
jmp 0x180059560
movsx eax, word [rsp + 0x50]
test eax, eax
je 0x18005950d
movabs rax, 0x2259b4adb23de
xor ecx, ecx
cmp rcx, rax
jne 0x18005953f
mov rax, qword [0x1800a6668]
test rax, rax
jne 0x180059526
mov dword [rsp + 0x98], 1
jmp 0x180059531
mov dword [rsp + 0x98], 0
movzx eax, byte [rsp + 0x31]
cmp dword [rsp + 0x98], eax
je 0x180059560
movzx eax, word [rsp + 0x38]
movzx eax, ax
movsx ecx, byte [0x1800a65fb]
sub eax, ecx
mov word [rsp + 0x38], ax
mov dword [rsp + 0xa8], 0xb64f6277
mov dword [rsp + 0x78], 0
mov byte [rsp + 0x30], 1
mov dword [rsp + 0x68], 0x1c576e56
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x9c], al
cmp byte [rsp + 0x9c], 0
je 0x180059597
cmp byte [rsp + 0x9c], 1
je 0x1800595a6
jmp 0x1800595d7
mov eax, dword [0x18091bdb0]
mov qword [0x1800a6670], rax
jmp 0x1800595d7
movsx eax, byte [rsp + 0x48]
mov ecx, 4
imul rcx, rcx, 0x19
lea rdx, [0x18099f290]
mov dword [rdx + rcx], eax
movzx eax, byte [rsp + 0x30]
imul eax, dword [0x1800a6698]
movzx ecx, byte [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0x118], rax
mov dword [rsp + 0x44], 8
mov rax, qword [rsp + 0x118]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x1e0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd8], rax
movsx rax, byte [rsp + 0x35]
mov rcx, qword [0x1800a66b8]
add rax, rcx
not rax
movzx ecx, byte [rsp + 0x33]
movsx ecx, cl
movzx edx, byte [rsp + 0x31]
and ecx, edx
movsxd rcx, ecx
mov edx, dword [0x1800a65bc]
movsxd rdx, edx
mov r8, qword [0x1800a66b8]
add r8, rdx
mov rdx, r8
not rdx
imul rcx, rdx
add rax, rcx
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x44]
mov rcx, qword [0x1800a66b8]
cmp rax, rcx
jbe 0x180059677
mov dword [rsp + 0xa4], 1
jmp 0x180059682
mov dword [rsp + 0xa4], 0
cmp dword [rsp + 0x44], 0x5f
jbe 0x180059696
mov dword [rsp + 0xa0], 1
jmp 0x1800596a1
mov dword [rsp + 0xa0], 0
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0xa4], eax
jl 0x1800596e6
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1800596e4
movzx eax, byte [rsp + 0x34]
movabs rcx, 0xc83822e648728
imul rax, rcx
mov byte [0x1800a6566], al
movzx eax, byte [rsp + 0x32]
movzx eax, al
sub eax, 0xd6f0136c
mov byte [rsp + 0x33], al
jmp 0x180059703
mov eax, dword [rsp + 0xa8]
mov eax, eax
mov rcx, qword [0x1800a6678]
sub rcx, rax
mov rax, rcx
mov qword [0x1800a6678], rax
mov qword [rsp + 0x70], 0
mov byte [rsp + 0x32], 4
mov eax, dword [rsp + 0x44]
and eax, 0x7099cbdc
mov word [0x1800a66b4], ax
movzx eax, byte [rsp + 0x32]
mov byte [rsp + 0x58], al
cmp byte [rsp + 0x58], 0
je 0x180059748
cmp byte [rsp + 0x58], 1
je 0x180059755
cmp byte [rsp + 0x58], 2
je 0x18005976e
cmp byte [rsp + 0x58], 4
je 0x1800597ac
jmp 0x1800597c6
movzx eax, byte [0x18091bdb0]
mov byte [rsp + 0x31], al
jmp 0x1800597c6
mov byte [0x1800a658f], 0x25
mov eax, dword [0x1800a65bc]
add eax, 0x2c
mov dword [rsp + 0xc8], eax
jmp 0x1800597c6
mov rax, qword [0x1800a66e0]
mov rcx, qword [rsp + 0xe0]
imul rax, rcx
mov rcx, qword [0x1800a66e0]
sub rcx, rax
mov rax, rcx
mov qword [0x1800a66e0], rax
movzx eax, word [0x1800a668c]
add eax, 0x6474
mov word [0x1800a6690], ax
jmp 0x1800597c6
mov dword [0x1800a66cc], 0
movzx eax, byte [rsp + 0x33]
movsx eax, al
sar eax, 6
mov word [rsp + 0x38], ax
mov qword [rsp + 0xe8], 0
mov eax, dword [0x1800a6688]
shl eax, 6
mov word [0x1800a669c], ax
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xf0], 0
mov dword [rsp + 0xd0], 0x20
mov eax, dword [0x1800a6698]
imul eax, dword [0x1800a6688]
mov ecx, dword [0x1800a6698]
sub ecx, eax
mov eax, ecx
mov dword [0x1800a6698], eax
mov qword [rsp + 0x120], 0x28
mov dword [rsp + 0xcc], 0x40
cmp dword [0x1800a66e8], 0
je 0x18005986b
movzx eax, word [rsp + 0x38]
movzx eax, ax
xor eax, 0x1f49
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x30]
add eax, 0xbc4e
cdqe
mov qword [0x1800a66a0], rax
jmp 0x180059903
mov rax, qword [0x1800a66d0]
test rax, rax
je 0x180059897
mov rax, qword [rsp + 0xe0]
test rax, rax
je 0x180059897
movsx eax, word [rsp + 0x60]
movzx ecx, byte [rsp + 0x33]
movsx ecx, cl
or eax, ecx
test eax, eax
je 0x1800598c3
movzx eax, byte [0x1800a65a7]
movzx ecx, word [0x1800a660c]
sub eax, ecx
mov byte [0x1800a65a7], al
mov rax, qword [0x1800a6670]
add rax, 0x6d72
mov qword [0x1800a66d8], rax
jmp 0x180059903
movabs rax, 0xfaf5d12282db5
xor ecx, ecx
cmp rcx, rax
je 0x1800598e9
movzx eax, byte [rsp + 0x34]
sub eax, 0x8e668a65
mov eax, eax
mov qword [0x1800a66d0], rax
jmp 0x180059903
cmp dword [0x1800a66c8], 0
je 0x180059903
mov eax, dword [0x1800a6624]
sub eax, 0x8a
mov dword [0x1800a66c4], eax
xor eax, eax
mov word [rsp + 0x40], ax
jmp 0x180059919
movzx eax, word [rsp + 0x40]
inc ax
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x40]
mov rcx, qword [rsp + 0xd8]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x180059cc6
mov rax, qword [rsp + 0xd8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0xd8]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rsp + 0x40]
mov rdx, qword [rsp + 0x120]
imul rdx, rcx
mov rcx, rdx
add rax, rcx
mov qword [rsp + 0x70], rax
lea rdx, [0x180086eec]
lea rcx, [rsp + 0x128]
call fcn.180059f00
mov rcx, rax
call fcn.18005a050
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
sub rax, rcx
movzx edx, byte [rcx]
cmp dl, byte [rcx + rax]
jne 0x1800599a3
inc rcx
test dl, dl
jne 0x180059990
xor eax, eax
jmp 0x1800599a8
sbb eax, eax
or eax, 1
test eax, eax
jne 0x180059cc1
mov qword [rsp + 0xf8], 0
movsx rax, word [rsp + 0x50]
movabs rcx, 0xb7f0244b56c53
xor rax, rcx
mov qword [0x1800a66d8], rax
mov eax, dword [rsp + 0x44]
add eax, 0x2e
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 8]
mov qword [rsp + 0xe8], rax
movzx eax, word [0x1800a6694]
movzx eax, ax
movzx ecx, byte [rsp + 0x32]
movzx ecx, cl
cmp eax, ecx
je 0x180059a09
jmp 0x180059a3e
cmp dword [0x1800a6698], 0
jne 0x180059a19
cmp dword [rsp + 0x4c], 0
je 0x180059a3e
movsxd rax, dword [rsp + 0x4c]
movabs rcx, 0xf803adf00e705
sub rax, rcx
movzx ecx, word [rsp + 0x38]
movzx ecx, cx
sub rcx, rax
mov rax, rcx
mov word [rsp + 0x38], ax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x1d8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x188]
lea rcx, str.Exception_during_c
mov rdi, rax
mov rsi, rcx
mov ecx, 0x26
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov byte [rsp + 0x49], al
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x1e0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xcc]
lea r8, [rsp + 0xe8]
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x1d0]
call fcn.1800027c3
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x180059bdd
mov rax, qword [0x1800a66b8]
movzx ecx, byte [0x1800a65a3]
movsx rcx, cl
cmp rax, rcx
jbe 0x180059b25
movzx eax, word [0x1800a66c0]
movzx eax, ax
imul eax, eax, 0x89
cdqe
mov qword [0x1800a6680], rax
mov dword [0x1800a66ec], 0xf781e024
jmp 0x180059bd3
mov rax, qword [0x1800a66e0]
not rax
test rax, rax
je 0x180059b48
cmp dword [rsp + 0x4c], 0
je 0x180059b48
mov dword [rsp + 0xac], 0
jmp 0x180059b53
mov dword [rsp + 0xac], 1
movzx eax, word [0x1800a6694]
movzx eax, ax
cmp eax, dword [rsp + 0xac]
jg 0x180059bd3
movzx eax, word [0x1800a66b4]
cwde
sub eax, dword [0x1800a66c4]
movzx ecx, word [0x1800a66b4]
movsx ecx, cx
add ecx, eax
mov eax, ecx
mov word [0x1800a66b4], ax
mov rax, qword [0x1800a66a0]
test rax, rax
jne 0x180059ba2
mov dword [rsp + 0xb0], 1
jmp 0x180059bad
mov dword [rsp + 0xb0], 0
movsx eax, byte [0x1800a658f]
mov ecx, dword [rsp + 0xb0]
sub ecx, eax
mov eax, ecx
movsx ecx, byte [rsp + 0x35]
movsx edx, word [rsp + 0x64]
sub ecx, edx
sub eax, ecx
not eax
mov byte [rsp + 0x31], al
mov eax, 0xa
jmp 0x180059ccb
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 8]
lea rcx, [rsp + 0xf8]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x1d0]
call fcn.180002125
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x180059c4b
movzx eax, byte [rsp + 0x30]
movzx ecx, byte [rsp + 0x3c]
movzx ecx, cl
add eax, ecx
movzx ecx, word [0x1800a669c]
add ecx, dword [0x1800a66c8]
add ecx, eax
mov eax, ecx
mov byte [rsp + 0x4a], al
mov eax, 0xc
jmp 0x180059ccb
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xd0]
lea r8, [rsp + 0xf8]
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x1d0]
call fcn.1800027c3
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x180059cbd
lea rax, [rsp + 0x160]
lea rcx, str.TokenEndpointUri
mov rdi, rax
mov rsi, rcx
mov ecx, 0x22
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov word [0x1800a6694], ax
mov eax, 0xb
jmp 0x180059ccb
xor eax, eax
jmp 0x180059ccb
jmp 0x18005990c
mov eax, 0xd
add rsp, 0x1b8
pop rdi
pop rsi
ret