Function at 0x1d77678
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x23c
mov eax, dword [ebp + 8]
mov ecx, dword [0x1f07010]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
dec ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x240], ecx
cmp byte [eax + 0xb], 0
js 0x1d776c4
mov ecx, dword [eax + 8]
mov dword [ebp - 0x240], ecx
movsd xmm0, qword [eax]
movsd qword [ebp - 0x248], xmm0
jmp 0x1d776d4
lea ecx, [ebp - 0x248]
push dword [eax + 4]
push dword [eax]
call fcn.01d741c0
lea edi, [ebp - 0x224]
mov ecx, edi
push str.embedded_browser_webview
call fcn.01cd2ef8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ebx, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.01cd2ef8
lea esi, [ebp - 0x218]
push edi
push ebx
push esi
call fcn.01d78e1c
add esp, 0xc
cmp byte [esi + 0xb], 0
js 0x1d77716
sete bl
jmp 0x1d7772e
cmp dword [ebp - 0x214], 0
sete bl
push dword [ebp - 0x218]
call fcn.01e5f36c
add esp, 4
cmp byte [ebp - 0x225], 0
jns 0x1d77745
push dword [ebp - 0x230]
call fcn.01e5f36c
add esp, 4
cmp byte [ebp - 0x219], 0
jns 0x1d7775c
push dword [ebp - 0x224]
call fcn.01e5f36c
add esp, 4
test bl, bl
lea ebx, [ebp - 0x218]
je 0x1d778c0
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push str.SOFTWAREPolicies_
call fcn.01cd2ef8
xor edi, edi
push esi
push edi
push dword [ebp + 0xc]
call fcn.01d78994
add esp, 0xc
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x21c], edi
cmp byte [esi + 0xb], 0
jns 0x1d777ae
mov esi, dword [ebp - 0x218]
lea ebx, [ebp - 0x224]
push ebx
push str.UserDataDir
push esi
push edi
push 1
call fcn.01d76ebf
add esp, 0x14
test al, al
je 0x1d77815
push ebx
lea eax, [ebp - 0x230]
push eax
call fcn.01dd4e78
add esp, 8
cmp byte [ebp - 0x23d], 0
jns 0x1d777f1
push dword [ebp - 0x248]
call fcn.01e5f36c
add esp, 4
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x240], eax
movsd xmm0, qword [ebp - 0x230]
movsd qword [ebp - 0x248], xmm0
lea ebx, [ebp - 0x218]
jmp 0x1d77892
cmp byte [ebp - 0x20d], 0
jns 0x1d77826
mov eax, dword [ebp - 0x218]
jmp 0x1d7782c
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x224]
lea ebx, [ebp - 0x218]
push esi
push str.UserDataDir
push eax
push 0
push 2
call fcn.01d76ebf
add esp, 0x14
test al, al
je 0x1d77892
push esi
lea eax, [ebp - 0x230]
push eax
call fcn.01dd4e78
add esp, 8
cmp byte [ebp - 0x23d], 0
jns 0x1d77876
push dword [ebp - 0x248]
call fcn.01e5f36c
add esp, 4
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x240], eax
movsd xmm0, qword [ebp - 0x230]
movsd qword [ebp - 0x248], xmm0
cmp byte [ebp - 0x219], 0
jns 0x1d778a9
push dword [ebp - 0x224]
call fcn.01e5f36c
add esp, 4
cmp byte [ebp - 0x20d], 0
jns 0x1d778c0
push dword [ebp - 0x218]
call fcn.01e5f36c
add esp, 4
mov al, byte [ebp - 0x23d]
test al, al
mov ecx, dword [ebp - 0x244]
movzx edx, al
mov esi, edx
cmovs esi, ecx
test esi, esi
je 0x1d77968
lea esi, [ebp - 0x248]
mov ecx, esi
call fcn.01cd2dfe
cmp word [eax], 0x5c
je 0x1d778fe
mov ecx, esi
call fcn.01cd2dfe
cmp word [eax], 0x2f
jne 0x1d77959
movzx eax, byte [ebp - 0x23d]
test al, al
js 0x1d7791c
test eax, eax
je 0x1d77d31
dec eax
mov byte [ebp - 0x23d], al
mov ecx, esi
jmp 0x1d77937
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x1d77d31
dec eax
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x244], eax
mov word [ecx + eax*2], 0
mov al, byte [ebp - 0x23d]
test al, al
mov ecx, dword [ebp - 0x244]
movzx edx, al
mov edi, edx
cmovs edi, ecx
test edi, edi
jne 0x1d778e4
jmp 0x1d77968
mov al, byte [ebp - 0x23d]
mov ecx, dword [ebp - 0x244]
movzx edx, al
test al, al
cmovs edx, ecx
test edx, edx
je 0x1d77988
lea eax, [ebp - 0x248]
push eax
call fcn.01d79d46
add esp, 4
test al, al
jne 0x1d77bfd
mov ecx, dword [ebp + 0x14]
lea edi, [ebp - 0x248]
push edi
call fcn.01cd2db4
xor eax, eax
dec eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
push str.LOCALAPPDATA
push ebx
call fcn.01d79102
add esp, 8
movzx eax, byte [ebp - 0x20d]
test al, al
jns 0x1d779cb
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x1d77c55
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0x244]
mov edx, dword [ebp - 0x240]
mov esi, dword [ebp - 0x210]
mov dword [ebp - 0x240], esi
movsd xmm0, qword [ebp - 0x218]
movsd qword [ebp - 0x248], xmm0
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], edx
movzx ecx, byte [ebp - 0x23d]
mov eax, ecx
test cl, cl
jns 0x1d77a26
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x1d77d4f
test cl, cl
jns 0x1d77a38
mov edi, dword [ebp - 0x248]
cmp word [edi + eax*2 - 2], 0x5c
je 0x1d77a4d
lea ecx, [ebp - 0x248]
push 0x5c
call fcn.01d748c4
lea esi, [ebp - 0x248]
push esi
push 1
push dword [ebp + 0xc]
call fcn.01d78994
add esp, 0xc
mov ecx, esi
push 0x5c
call fcn.01d748c4
mov ecx, esi
push 9
push str.User_Data
call fcn.01d74480
xor eax, eax
dec eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
lea edi, [ebp - 0x230]
mov ecx, edi
push str.edge_kiosk_type
call fcn.01cd2ef8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea esi, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.01cd2ef8
push edi
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.01d78e1c
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x1d77ad8
push dword [ebp - 0x23c]
call fcn.01e5f36c
add esp, 4
cmp byte [ebp - 0x225], 0
jns 0x1d77aef
push dword [ebp - 0x230]
call fcn.01e5f36c
add esp, 4
push str.fullscreen
call fcn.01e79bc6
add esp, 4
movzx edx, byte [ebp - 0x219]
test dl, dl
cmovs edx, dword [ebp - 0x220]
mov esi, eax
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x224]
cmovns eax, ecx
lea ebx, [ebp - 0x230]
mov ecx, ebx
push edx
push eax
call fcn.01cd2c42
cmp dword [ebx + 4], esi
jne 0x1d77b52
test esi, esi
je 0x1d77bb1
xor eax, eax
mov ecx, dword [ebp - 0x230]
movzx edx, word [ecx + eax*2]
cmp dx, word [eax + eax + str.fullscreen]
jne 0x1d77b52
inc eax
cmp esi, eax
jne 0x1d77b3d
jmp 0x1d77bb1
push str.public_browsing
call fcn.01e79bc6
add esp, 4
movzx edx, byte [ebp - 0x219]
test dl, dl
cmovs edx, dword [ebp - 0x220]
mov esi, eax
lea eax, [ebp - 0x224]
cmovs eax, dword [ebp - 0x224]
lea ebx, [ebp - 0x230]
mov ecx, ebx
push edx
push eax
call fcn.01cd2c42
cmp dword [ebx + 4], esi
jne 0x1d77bc3
test esi, esi
je 0x1d77bb1
xor eax, eax
mov ecx, dword [ebp - 0x230]
movzx edx, word [ecx + eax*2]
cmp dx, word [eax + eax + str.public_browsing]
jne 0x1d77bc3
inc eax
cmp esi, eax
jne 0x1d77b9e
lea ecx, [ebp - 0x248]
push 6
push str._Kiosk
call fcn.01d74480
cmp byte [ebp - 0x219], 0
jns 0x1d77bda
push dword [ebp - 0x224]
call fcn.01e5f36c
add esp, 4
mov bl, 1
cmp byte [ebp - 0x20d], 0
jns 0x1d77bf3
push dword [ebp - 0x218]
call fcn.01e5f36c
add esp, 4
test bl, bl
lea ebx, [ebp - 0x218]
je 0x1d77c21
push 0x208
push 0xff
push ebx
call fcn.01e63410
add esp, 0xc
cmp byte [ebp - 0x23d], 0
jns 0x1d77c28
mov eax, dword [ebp - 0x248]
jmp 0x1d77c2e
xor ebx, ebx
jmp 0x1d77cfc
lea eax, [ebp - 0x248]
mov esi, dword [ebp + 0x10]
push 0x104
push eax
push ebx
call fcn.01e7604f
add esp, 0xc
test eax, eax
je 0x1d77cc1
lea ecx, [ebp - 0x224]
push ebx
call fcn.01cd2ef8
jmp 0x1d77cd5
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1d77bdc
mov esi, eax
inc esi
lea ebx, [ebp - 0x218]
mov ecx, ebx
push 0
push esi
call fcn.01d74c9a
cmp byte [ebp - 0x20d], 0
jns 0x1d77c89
mov ebx, dword [ebp - 0x218]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1d77d2a
movzx ecx, byte [ebp - 0x20d]
test cl, cl
jns 0x1d77caa
mov ecx, dword [ebp - 0x214]
cmp eax, ecx
jae 0x1d77d2a
lea ecx, [ebp - 0x218]
push 0
push eax
call fcn.01d74c9a
jmp 0x1d779d3
xor eax, eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], eax
cmp byte [esi + 0xb], 0
jns 0x1d77ce5
push dword [esi]
call fcn.01e5f36c
add esp, 4
mov eax, dword [ebp - 0x21c]
mov dword [esi + 8], eax
movsd xmm0, qword [ebp - 0x224]
movsd qword [esi], xmm0
mov bl, 1
cmp byte [ebp - 0x23d], 0
jns 0x1d77d13
push dword [ebp - 0x248]
call fcn.01e5f36c
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01e60425
mov eax, ebx
add esp, 0x23c
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x1d77bdc
push str.string::pop_back__:_string_is_already_empty
push str._empty__
push 0xc69
push str....._third_partylibc_srcinclude_string
push str._s:_d:_assertion__s_failed:__s_n
call fcn.01ce782c
push str.string_index_out_of_bounds
push 0x1eb055e
push 0x4b8
jmp 0x1d77d40