Function at 0x180057e70
Capabilities:
Accept command line arguments
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3e0
mov rax, qword [0x1800a66e0]
mov dword [rsp + 0x1a4], eax
mov byte [rsp + 0x28], 0xb2
movabs rax, 0x517565a82b54c
mov qword [rsp + 0xa0], rax
movzx eax, byte [0x1800a6624]
mov byte [rsp + 0x40], al
movzx eax, byte [0x1800a6567]
mov word [rsp + 0x44], ax
movzx eax, word [0x1800a6688]
mov word [rsp + 0x34], ax
mov byte [rsp + 0x38], 3
mov qword [rsp + 0x158], 0x23
movzx eax, byte [0x1800a65a6]
mov byte [rsp + 0x26], al
mov eax, dword [0x1800a65bc]
cdqe
mov qword [rsp + 0xa8], rax
mov eax, 0xffff9724
mov word [rsp + 0x3c], ax
mov eax, 0x165f
mov word [rsp + 0x48], ax
mov byte [rsp + 0x25], 0xd0
mov byte [rsp + 0x30], 0x13
mov rax, qword [0x1800a66e0]
mov word [rsp + 0x78], ax
movabs rax, 0x85405033e25b9
mov qword [rsp + 0xb0], rax
mov eax, dword [0x1800a66c8]
mov dword [rsp + 0x54], eax
mov qword [rsp + 0x60], 0x964f
movzx eax, byte [0x1800a65e7]
movsx ax, al
mov word [rsp + 0x2c], ax
mov byte [rsp + 0x27], 0xb5
mov rax, qword [0x1800a6668]
mov dword [rsp + 0x68], eax
movzx eax, byte [0x1800a6698]
mov byte [rsp + 0x24], al
mov rax, qword [0x1800a66b8]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x50], 0xb0609ac
movzx eax, byte [0x1800a65a6]
movzx eax, al
mov dword [rsp + 0x4c], eax
mov eax, 0xffffecab
mov word [rsp + 0x128], ax
movzx eax, word [0x1800a66ec]
mov word [rsp + 0x12c], ax
mov dword [rsp + 0x1a8], 0x51
mov eax, 0x6e6f
mov word [rsp + 0x130], ax
mov eax, 0xffff8d24
mov word [rsp + 0x134], ax
mov eax, 0x79d5
mov word [rsp + 0x138], ax
movzx eax, byte [0x1800a65a7]
mov word [rsp + 0x13c], ax
movzx eax, word [0x1800a668c]
mov word [rsp + 0x144], ax
movabs rax, 0xe3ede16048e27
mov qword [rsp + 0x1b8], rax
mov eax, 0x24
mov word [rsp + 0x140], ax
cmp dword [rsp + 0x54], 0
jne 0x180058031
mov dword [rsp + 0xb8], 1
jmp 0x18005803c
mov dword [rsp + 0xb8], 0
movzx eax, word [0x1800a6694]
movzx eax, ax
add eax, dword [rsp + 0xb8]
not eax
cdqe
mov rcx, qword [0x1800a66e0]
mov rdx, qword [rsp + 0x70]
xor rdx, rcx
mov rcx, rdx
imul rax, rcx
mov qword [rsp + 0x70], rax
mov eax, dword [0x1800a66b0]
add eax, 0xae90
mov eax, eax
mov qword [rsp + 0xa0], rax
mov eax, dword [0x18091bdb0]
mov dword [rsp + 0x7c], eax
movzx eax, word [0x1800a66c0]
movzx eax, ax
test eax, eax
je 0x1800580f1
call qword [sym.imp.USER32.dll_GetFocus]
mov qword [rsp + 0x120], rax
cmp qword [rsp + 0x120], 0
je 0x1800580f1
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.USER32.dll_IsWindow]
mov dword [rsp + 0x188], eax
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.USER32.dll_IsWindowEnabled]
mov dword [rsp + 0x18c], eax
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.USER32.dll_IsWindowUnicode]
mov dword [rsp + 0x190], eax
mov eax, dword [rsp + 0x7c]
add eax, 0x4d8
mov dword [rsp + 0x148], eax
mov rax, qword [rsp + 0x60]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov byte [0x1800a65fb], al
movzx eax, byte [rsp + 0x28]
movzx eax, al
mov ecx, dword [rsp + 0x50]
cmp eax, ecx
ja 0x1800581e2
movzx eax, byte [0x1800a65fe]
movsx eax, al
not eax
movzx ecx, byte [0x1800a65a6]
movzx ecx, cl
cmp eax, ecx
jl 0x1800581e2
cmp dword [0x1800a66c4], 0
je 0x180058167
cmp qword [rsp + 0x158], 0
je 0x180058167
mov dword [rsp + 0xbc], 1
jmp 0x180058172
mov dword [rsp + 0xbc], 0
mov eax, dword [rsp + 0xbc]
cmp dword [rsp + 0x54], eax
jae 0x18005818c
mov dword [rsp + 0xc0], 1
jmp 0x180058197
mov dword [rsp + 0xc0], 0
mov eax, dword [rsp + 0xc0]
not eax
test eax, eax
je 0x1800581bc
movzx eax, word [rsp + 0x34]
movzx ecx, byte [0x1800a65a3]
movsx ecx, cl
add eax, ecx
mov word [rsp + 0x34], ax
jmp 0x1800581e0
movsx eax, byte [rsp + 0x40]
mov ecx, dword [0x1800a663c]
add eax, ecx
mov byte [rsp + 0x40], al
movzx eax, byte [0x1800a658e]
mov ecx, dword [rsp + 0x50]
add eax, ecx
mov byte [0x1800a658e], al
jmp 0x180058205
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x180058205
movzx eax, word [rsp + 0x48]
movzx eax, ax
movabs rcx, 0x51d0828730376
add rax, rcx
mov dword [0x1800a66cc], eax
mov eax, dword [rsp + 0x7c]
add eax, 0x6d1
mov dword [rsp + 0x1ac], eax
mov eax, dword [rsp + 0x7c]
add eax, 0x4bd
mov dword [rsp + 0xfc], eax
movzx eax, byte [rsp + 0x25]
movzx eax, al
test eax, eax
je 0x18005825c
movzx eax, byte [0x1800a658e]
movabs rcx, 0x7649c96e1b649
sub rax, rcx
mov word [rsp + 0x3c], ax
movzx eax, byte [0x1800a658e]
mov byte [0x1800a6566], al
jmp 0x18005833f
movzx eax, word [rsp + 0x78]
cwde
test eax, eax
je 0x180058274
movzx eax, byte [rsp + 0x68]
mov byte [rsp + 0x28], al
jmp 0x18005833f
movzx eax, word [rsp + 0x2c]
cwde
mov ecx, dword [0x1800a66cc]
cmp eax, ecx
jl 0x180058291
mov dword [rsp + 0xc8], 1
jmp 0x18005829c
mov dword [rsp + 0xc8], 0
movsx eax, byte [rsp + 0x38]
cmp eax, 0x2abd
jge 0x1800582b5
mov dword [rsp + 0xc4], 1
jmp 0x1800582c0
mov dword [rsp + 0xc4], 0
mov eax, dword [rsp + 0xc4]
not eax
mov ecx, dword [rsp + 0xc8]
sub ecx, eax
mov eax, ecx
not eax
test eax, eax
je 0x1800582ee
mov rax, qword [0x1800a66d8]
xor rax, 0x90
mov qword [rsp + 0x60], rax
jmp 0x18005833f
movsxd rax, dword [0x1800a66ec]
mov rcx, qword [0x1800a66a8]
not rcx
cmp rax, rcx
jb 0x18005833f
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x180058322
mov rax, qword [0x1800a66a0]
mov qword [rsp + 0x160], rax
jmp 0x180058332
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x160], rax
movzx eax, word [rsp + 0x160]
mov word [rsp + 0x44], ax
mov eax, dword [0x18091bdb0]
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x80]
add eax, 0x36d
mov dword [rsp + 0x58], eax
movzx eax, byte [rsp + 0x25]
movzx eax, al
mov rcx, qword [rsp + 0xa8]
cmp rax, rcx
je 0x180058376
jmp 0x180058496
movzx eax, byte [rsp + 0x25]
movzx eax, al
cmp eax, dword [0x1800a6698]
je 0x1800583f9
mov eax, dword [0x1800a66e8]
add eax, 0xd2
test eax, eax
jne 0x1800583a3
mov qword [rsp + 0x168], 1
jmp 0x1800583af
mov qword [rsp + 0x168], 0
movzx eax, byte [0x1800a6566]
movsx rax, al
mov rcx, qword [0x1800a66a8]
add rcx, rax
mov rax, rcx
mov rcx, qword [0x1800a66a8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x168]
add rcx, rax
mov rax, rcx
mov word [0x1800a6694], ax
mov qword [0x1800a6670], 0x49ea6d9c
jmp 0x180058496
xor eax, eax
cmp eax, 0x94
je 0x18005847e
mov eax, 2
imul rax, rax, 0x5cc2
lea rcx, [0x1809e40e0]
movsx eax, word [rcx + rax]
movzx ecx, word [rsp + 0x48]
movzx ecx, cx
sub ecx, eax
mov eax, ecx
mov word [rsp + 0x48], ax
movzx eax, byte [0x1800a6566]
movsx eax, al
test eax, eax
jne 0x180058445
mov dword [rsp + 0xcc], 1
jmp 0x180058450
mov dword [rsp + 0xcc], 0
movsxd rax, dword [0x1800a66ec]
xor rax, qword [0x1800a6670]
movzx ecx, byte [0x1800a65e7]
movsx ecx, cl
sub ecx, dword [rsp + 0xcc]
movsxd rcx, ecx
sub rax, rcx
mov qword [0x1800a66b8], rax
jmp 0x180058496
mov rax, qword [0x1800a6678]
test rax, rax
je 0x180058496
mov rax, qword [rsp + 0x60]
mov qword [0x1800a6680], rax
mov eax, dword [rsp + 0x80]
add eax, 0x499
mov dword [rsp + 0x194], eax
movzx eax, byte [rsp + 0x27]
movsx rax, al
mov rcx, qword [0x1800a6680]
cmp rax, rcx
je 0x1800586f9
movzx eax, byte [rsp + 0x25]
movzx eax, al
movzx ecx, word [rsp + 0x2c]
movsx ecx, cx
cmp eax, ecx
jg 0x1800584e3
mov dword [rsp + 0xd4], 1
jmp 0x1800584ee
mov dword [rsp + 0xd4], 0
movzx eax, byte [rsp + 0x25]
movzx eax, al
mov ecx, dword [rsp + 0x50]
cmp eax, ecx
jae 0x18005850b
mov dword [rsp + 0xd0], 1
jmp 0x180058516
mov dword [rsp + 0xd0], 0
mov eax, dword [rsp + 0xd0]
cmp dword [rsp + 0xd4], eax
jne 0x180058533
mov dword [rsp + 0xe0], 1
jmp 0x18005853e
mov dword [rsp + 0xe0], 0
cmp qword [rsp + 0x70], 0xb2
je 0x180058556
mov dword [rsp + 0xd8], 1
jmp 0x180058561
mov dword [rsp + 0xd8], 0
mov eax, dword [rsp + 0x50]
not eax
cmp dword [rsp + 0xd8], eax
ja 0x18005857d
mov dword [rsp + 0xdc], 1
jmp 0x180058588
mov dword [rsp + 0xdc], 0
mov eax, dword [rsp + 0xdc]
cmp dword [rsp + 0xe0], eax
jg 0x18005861f
mov eax, dword [rsp + 0x4c]
test eax, eax
jne 0x1800585b1
mov dword [rsp + 0xe4], 1
jmp 0x1800585bc
mov dword [rsp + 0xe4], 0
movzx eax, byte [rsp + 0x26]
movzx eax, al
mov ecx, dword [0x1800a6624]
not ecx
movsxd rcx, ecx
mov rdx, qword [0x1800a6680]
sub rdx, rcx
mov rcx, rdx
xor rax, rcx
movsx ecx, byte [rsp + 0x30]
mov edx, dword [rsp + 0xe4]
imul edx, ecx
mov ecx, edx
imul ecx, ecx, 3
movsxd rcx, ecx
add rax, rcx
mov dword [rsp + 0x54], eax
movabs rax, 0xfeb58ebe05dda
mov rcx, qword [rsp + 0xb0]
imul rcx, rax
mov rax, rcx
mov byte [rsp + 0x27], al
jmp 0x1800586f4
movzx eax, word [rsp + 0x44]
cwde
test eax, eax
jne 0x180058636
mov dword [rsp + 0xe8], 1
jmp 0x180058641
mov dword [rsp + 0xe8], 0
cmp dword [rsp + 0xe8], 0
je 0x180058658
mov dword [rsp + 0xf0], 1
jmp 0x180058663
mov dword [rsp + 0xf0], 0
movsx rax, word [rsp + 0x3c]
movabs rcx, 0xdf61ece700719
cmp rax, rcx
jg 0x180058685
mov dword [rsp + 0xec], 1
jmp 0x180058690
mov dword [rsp + 0xec], 0
mov eax, dword [rsp + 0xec]
mov ecx, dword [rsp + 0xf0]
sub ecx, eax
mov eax, ecx
test eax, eax
je 0x1800586f4
movzx eax, byte [0x1800a65e6]
movzx eax, al
test eax, eax
je 0x1800586c5
mov rax, qword [0x1800a66e0]
mov qword [rsp + 0x170], rax
jmp 0x1800586d4
mov rax, qword [0x1800a66a0]
mov qword [rsp + 0x170], rax
movzx eax, word [rsp + 0x170]
mov word [0x1800a66b4], ax
movzx eax, word [0x1800a669c]
inc ax
mov word [0x1800a669c], ax
jmp 0x18005879e
movzx eax, byte [rsp + 0x26]
movzx eax, al
test eax, eax
jne 0x18005871d
movsx eax, word [0x1800a6690]
test eax, eax
je 0x18005871d
mov dword [rsp + 0xf8], 1
jmp 0x180058728
mov dword [rsp + 0xf8], 0
movzx eax, byte [rsp + 0x27]
movsx eax, al
movzx ecx, byte [rsp + 0x24]
movsx ecx, cl
cmp eax, ecx
je 0x180058749
mov dword [rsp + 0xf4], 1
jmp 0x180058754
mov dword [rsp + 0xf4], 0
mov eax, dword [rsp + 0xf4]
cmp dword [rsp + 0xf8], eax
jg 0x18005879e
movzx eax, word [0x1800a660c]
add eax, 0xafffba9e
mov dword [0x1800a6698], eax
mov eax, 1
imul rax, rax, 0x73
lea rcx, [0x1809b3450]
movzx eax, byte [rcx + rax]
mov rcx, qword [0x1800a66a8]
sub rcx, rax
mov rax, rcx
mov qword [0x1800a66a8], rax
mov eax, dword [rsp + 0x80]
add eax, 0x665
mov dword [rsp + 0x198], eax
mov eax, dword [0x18091bdb0]
mov dword [rsp + 0x84], eax
mov eax, dword [rsp + 0x84]
add eax, 0x5a1
mov dword [rsp + 0x8c], eax
mov eax, dword [rsp + 0x84]
add eax, 0x5ed
mov dword [rsp + 0x14c], eax
movzx eax, word [rsp + 0xb0]
mov word [rsp + 0x48], ax
mov eax, dword [rsp + 0x84]
add eax, 0x47b
mov dword [rsp + 0x19c], eax
mov eax, dword [0x18091bdb0]
mov dword [rsp + 0x88], eax
movzx eax, word [0x1800a65fc]
movzx eax, ax
mov ecx, eax
call qword [sym.imp.USER32.dll_OpenIcon]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x18005886b
movzx eax, word [rsp + 0x34]
mov rcx, qword [rsp + 0xa0]
sub rax, rcx
movzx ecx, word [rsp + 0x34]
add rcx, rax
mov rax, rcx
mov word [rsp + 0x34], ax
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0xb0]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0xb0], rax
jmp 0x18005889d
movsx eax, byte [rsp + 0x30]
test eax, eax
je 0x18005889d
movzx eax, byte [0x1800a65e7]
movsx rax, al
movabs rcx, 0x5bd770035f07f
sub rax, rcx
mov byte [0x1800a65e7], al
movzx eax, word [rsp + 0x34]
mov dword [0x1800a65bc], eax
mov eax, dword [rsp + 0x88]
add eax, 0x617
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x88]
add eax, 0x510
mov dword [rsp + 0x11c], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessorNumber]
mov word [rsp + 0x2c], ax
mov eax, dword [rsp + 0x88]
add eax, 0x4c3
mov dword [rsp + 0x1a0], eax
mov qword [rsp + 0x180], 0
movzx eax, byte [rsp + 0x24]
movsx eax, al
sub eax, 0xa72b01c7
mov byte [rsp + 0x24], al
movsx eax, byte [rsp + 0x38]
movzx ecx, byte [rsp + 0x26]
movzx ecx, cl
sub eax, ecx
not eax
cdqe
mov qword [0x1800a6668], rax
mov qword [0x1800a6668], 4
movsx eax, word [0x1800a6690]
not eax
mov byte [rsp + 0x25], al
movzx eax, byte [0x1800a65a7]
mov rcx, qword [rsp + 0x60]
add rax, rcx
mov byte [0x1800a65a7], al
mov rax, qword [0x1800a6668]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x180058998
cmp qword [rsp + 0x98], 1
je 0x1800589ad
cmp qword [rsp + 0x98], 2
je 0x1800589ce
cmp qword [rsp + 0x98], 3
je 0x180058a04
cmp qword [rsp + 0x98], 4
je 0x180058a2b
jmp 0x180058a65
mov rax, qword [0x1800a66d0]
sar rax, 1
mov dword [0x1800a6624], eax
jmp 0x180058a65
movsx eax, word [rsp + 0x3c]
sub eax, dword [0x1800a6698]
mov word [rsp + 0x3c], ax
mov eax, dword [0x1800a663c]
shl eax, 1
mov dword [rsp + 0x68], eax
jmp 0x180058a65
mov eax, dword [0x1800a66c4]
mov ecx, dword [0x1800a6698]
lea eax, [rax + rcx + 0x38]
mov dword [0x1800a66c4], eax
movzx eax, byte [rsp + 0x24]
movsx eax, al
mov ecx, dword [rsp + 0x50]
xor eax, ecx
movzx ecx, byte [rsp + 0x24]
movsx ecx, cl
add ecx, eax
mov eax, ecx
mov byte [rsp + 0x24], al
jmp 0x180058a65
movzx eax, byte [rsp + 0x28]
movzx eax, al
mov ecx, dword [0x1800a6624]
and ecx, eax
mov eax, ecx
mov dword [0x1800a6624], eax
mov eax, dword [0x18091bdb0]
mov qword [0x1800a6680], rax
jmp 0x180058a65
movzx eax, word [rsp + 0x2c]
cwde
movzx ecx, byte [rsp + 0x25]
movzx ecx, cl
sub eax, ecx
movzx ecx, word [rsp + 0x2c]
movsx ecx, cx
sub ecx, eax
mov eax, ecx
mov word [rsp + 0x2c], ax
mov rax, qword [rsp + 0x60]
movabs rcx, 0x947bd7c4fed90
add rax, rcx
mov qword [0x1800a66d8], rax
mov dword [rsp + 0x94], 0
mov dword [rsp + 0x20], 0x64
lea rax, [rsp + 0x2d0]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movzx eax, byte [0x1800a65e7]
movsx eax, al
movzx ecx, byte [0x1800a6567]
cmp eax, ecx
je 0x180058aad
jmp 0x180058b10
movzx eax, byte [rsp + 0x26]
movzx eax, al
test eax, eax
je 0x180058b10
mov rax, qword [0x1800a66d8]
test rax, rax
je 0x180058ad7
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x178], rax
jmp 0x180058ae6
mov rax, qword [0x1800a66e0]
mov qword [rsp + 0x178], rax
movzx eax, byte [rsp + 0x178]
mov byte [0x1800a6567], al
movzx eax, word [rsp + 0x44]
movsx rax, ax
movabs rcx, 0x6a488ff1d71c3
sub rax, rcx
mov dword [0x1800a6624], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov byte [0x1800a65a7], al
mov eax, dword [rsp + 0x148]
xor eax, 0x37b
mov ecx, dword [rsp + 0xfc]
mov edx, dword [rsp + 0xfc]
sub ecx, edx
imul eax, ecx
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov r8d, 0x103
mov rdx, qword [rsp + 0x3f0]
lea rcx, [rsp + 0x2d0]
call fcn.180078090
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x4c]
cmp eax, dword [0x1800a66c8]
jne 0x180058b8d
mov dword [rsp + 0x104], 1
jmp 0x180058b98
mov dword [rsp + 0x104], 0
mov eax, dword [rsp + 0x4c]
cmp eax, 0x23
jne 0x180058bae
mov dword [rsp + 0x100], 1
jmp 0x180058bb9
mov dword [rsp + 0x100], 0
mov eax, dword [rsp + 0x100]
cmp dword [rsp + 0x104], eax
jle 0x180058bde
mov rcx, qword [0x1800a66e0]
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov dword [0x1800a66b0], eax
jmp 0x180058c10
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x50]
cmp eax, ecx
jae 0x180058c10
mov dword [0x1800a6624], 0x2812d3f6
imul eax, dword [rsp + 0x54], 0xb9b0affc
movzx ecx, byte [0x1800a65e6]
movzx ecx, cl
add ecx, eax
mov eax, ecx
mov byte [0x1800a65e6], al
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x180058c8d
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xa0]
cmp rax, rcx
ja 0x180058c44
mov dword [rsp + 0x10c], 1
jmp 0x180058c4f
mov dword [rsp + 0x10c], 0
mov rax, qword [rsp + 0x60]
cmp rax, 0xb
ja 0x180058c67
mov dword [rsp + 0x108], 1
jmp 0x180058c72
mov dword [rsp + 0x108], 0
mov eax, dword [rsp + 0x108]
cmp dword [rsp + 0x10c], eax
jle 0x180058c8d
movzx eax, byte [0x18091bdb0]
mov byte [rsp + 0x24], al
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
cdqe
mov qword [rsp + 0x180], rax
lea rax, [rsp + 0x1c0]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x24]
movsx eax, al
movzx ecx, byte [0x1800a65a7]
cmp eax, ecx
jge 0x180058cfb
mov eax, dword [0x1800a66c4]
add eax, 0xf6
mov word [0x1800a66b4], ax
mov eax, dword [0x1800a66cc]
cdqe
xor rax, qword [rsp + 0x70]
mov byte [0x1800a65fe], al
jmp 0x180058d22
movzx eax, byte [0x1800a65a3]
movsx eax, al
test eax, eax
je 0x180058d22
movzx eax, byte [rsp + 0x26]
movzx eax, al
movsx ecx, word [rsp + 0x3c]
lea eax, [rcx + rax + 0x5b108962]
mov word [rsp + 0x3c], ax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsx eax, byte [rsp + 0x30]
cmp eax, dword [rsp + 0x68]
jae 0x180058d39
jmp 0x180058db5
mov eax, dword [0x1800a663c]
cmp dword [rsp + 0x54], eax
jae 0x180058d52
mov dword [rsp + 0x114], 1
jmp 0x180058d5d
mov dword [rsp + 0x114], 0
mov rax, qword [0x1800a6678]
cmp rax, 0x528
je 0x180058d79
mov dword [rsp + 0x110], 1
jmp 0x180058d84
mov dword [rsp + 0x110], 0
mov eax, dword [rsp + 0x110]
cmp dword [rsp + 0x114], eax
jl 0x180058db5
movzx eax, word [rsp + 0x34]
imul eax, eax, 0x20e081b5
cdqe
mov rcx, qword [0x1800a66d8]
and rcx, rax
mov rax, rcx
mov qword [0x1800a66d8], rax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x60], 2
movsx eax, byte [rsp + 0x30]
sub eax, 0x41
mov byte [0x1800a6567], al
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x150], rax
cmp qword [rsp + 0x150], 0
je 0x180058e04
cmp qword [rsp + 0x150], 1
je 0x180058e19
cmp qword [rsp + 0x150], 2
je 0x180058e20
jmp 0x180058e4b
movzx eax, byte [0x1800a65e7]
movsx eax, al
sar eax, 8
mov byte [0x1800a65e6], al
jmp 0x180058e4b
mov byte [rsp + 0x26], 0xe8
jmp 0x180058e4b
movzx eax, word [0x1800a65fc]
movzx eax, ax
movabs rcx, 0x9b52c377ba99b
add rax, rcx
mov rcx, qword [0x1800a6678]
add rcx, rax
mov rax, rcx
mov qword [0x1800a6678], rax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov r8d, 0x103
mov rdx, qword [rsp + 0x3f8]
lea rcx, [rsp + 0x1c0]
call fcn.180078090
mov qword [rsp + 0x158], 0x579a58b5
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0xa8], 0
movsx eax, word [rsp + 0x3c]
not eax
movzx ecx, word [0x1800a66c0]
movzx ecx, cx
add eax, ecx
movzx ecx, word [0x1800a668c]
add eax, ecx
movzx ecx, word [rsp + 0x2c]
movsx ecx, cx
lea eax, [rax + rcx - 0xcc]
mov dword [0x1800a66ec], eax
movsx rax, byte [0x1800a658f]
movabs rcx, 0x68bbeb67b8b4
add rax, rcx
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x1b0], rax
cmp qword [rsp + 0x1b0], 0
je 0x180058ef7
jmp 0x180058f02
movzx eax, byte [0x18091bdb0]
mov byte [rsp + 0x28], al
mov eax, dword [rsp + 0x58]
imul eax, eax, 0x105
mov ecx, dword [rsp + 0x58]
imul ecx, ecx, 0x105
sub eax, ecx
mov ecx, dword [rsp + 0x58]
imul ecx, ecx, 0x105
mov edx, dword [rsp + 0x58]
mov edi, dword [rsp + 0x58]
sub edx, edi
imul ecx, edx
add ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xa8]
cmp rax, rcx
jb 0x180058f4f
jmp 0x180058f82
mov eax, 0xbbf3038b
mov rcx, qword [rsp + 0xb0]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
movzx eax, word [rsp + 0x2c]
cwde
add eax, dword [rsp + 0x54]
movzx ecx, word [rsp + 0x2c]
movsx ecx, cx
sub ecx, eax
mov eax, ecx
mov word [rsp + 0x2c], ax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
cdqe
mov qword [rsp + 0x180], rax
movsx eax, byte [0x1800a658f]
movsx ecx, byte [rsp + 0x38]
cmp eax, ecx
jge 0x180058fbe
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov byte [0x1800a65a7], al
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetOEMCP]
mov eax, eax
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x2d0]
call fcn.180078480
test eax, eax
jne 0x18005900b
mov dword [rsp + 0x118], 1
jmp 0x180059016
mov dword [rsp + 0x118], 0
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x94], eax
mov rax, qword [0x1800a6668]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x14c]
mov ecx, dword [rsp + 0x8c]
add eax, ecx
mov ecx, dword [rsp + 0x8c]
mov edx, dword [rsp + 0x8c]
xor ecx, edx
imul eax, ecx
mov ecx, dword [rsp + 0x20]
lea eax, [rcx + rax + 1]
mov dword [rsp + 0x20], eax
mov dword [0x1800a66b0], 0x5171
movzx eax, word [0x1800a66b4]
cwde
movzx ecx, word [rsp + 0x44]
movsx ecx, cx
add ecx, 0xc1
cmp eax, ecx
jne 0x1800590c1
movzx eax, word [rsp + 0x34]
mov rcx, qword [0x1800a6668]
add rcx, rax
mov rax, rcx
cmp rax, 1
jne 0x1800590c1
jmp 0x180059066
movzx eax, word [0x1800a66c0]
movzx eax, ax
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [0x1800a6668]
mov rcx, qword [rsp + 0x70]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
movzx eax, byte [rsp + 0x27]
movsx rax, al
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov eax, eax
mov qword [0x1800a66d0], rax
mov rax, qword [0x1800a66d0]
test rax, rax
je 0x180059132
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov qword [0x1800a66a0], rax
mov eax, dword [rsp + 0x90]
mov ecx, dword [rsp + 0x11c]
add eax, ecx
mov ecx, dword [rsp + 0x11c]
mov edx, dword [rsp + 0x90]
add ecx, edx
sub eax, ecx
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
movzx eax, byte [rsp + 0x28]
movzx eax, al
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov eax, eax
mov qword [0x1800a66a8], rax
mov eax, dword [rsp + 0x94]
add rsp, 0x3e0
pop rdi
ret