Function at 0x441b70
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b7c7
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x254], 0xf
mov dword [ebp - 0x258], 0
mov byte [ebp - 0x268], 0
push 0xfe
lea eax, [ebp - 0x117]
mov dword [ebp - 4], 0
push 0
push eax
mov byte [ebp - 0x118], 0
call fcn.00540250
add esp, 0xc
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x441c39
cmp dword [ebp - 0x18], 0
je 0x441c39
push 0xff
lea eax, [ebp - 0x118]
push eax
push str._ProgramFiles_x86__
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x118], 0
jne 0x441c25
xor ecx, ecx
jmp 0x441c6f
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441c30
jmp 0x441c6d
push 0xff
lea eax, [ebp - 0x118]
push eax
push str._ProgramFiles_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x118], 0
jne 0x441c5d
xor ecx, ecx
jmp 0x441c6f
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441c66
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x268]
call fcn.00408210
push 1
push 0x5dc5dc
lea ecx, [ebp - 0x268]
call fcn.00408210
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x250], 0
call fcn.004083b0
push 0x12
push str.appbradXULRunner_
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.00408210
cmp dword [ebp - 0x23c], 0x10
lea edx, [ebp - 0x250]
mov dword [ebp - 0x224], 0xf
cmovae edx, dword [ebp - 0x250]
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x238], 0
cmp byte [edx], 0
jne 0x441d0d
xor ecx, ecx
jmp 0x441d1b
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441d12
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x238]
call fcn.004085a0
cmp dword [ebp - 0x224], 0x10
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x441d4c
xor esi, esi
jmp 0x441d55
movzx esi, al
shr esi, 4
and esi, 1
cmp dword [ebp - 0x224], 0x10
jb 0x441d6c
push dword [ebp - 0x238]
call fcn.0053e195
add esp, 4
test esi, esi
je 0x442159
cmp dword [ebp - 0x23c], 0x10
lea eax, [ebp - 0x250]
push str.cert_override.txt
cmovae eax, dword [ebp - 0x250]
push eax
lea eax, [ebp - 0x220]
push str._s_s
push eax
call fcn.00433f00
add esp, 0x10
mov dword [ebp - 0x224], 0xf
cmp byte [ebp - 0x220], 0
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x238], 0
jne 0x441dca
xor ecx, ecx
jmp 0x441ddc
lea ecx, [ebp - 0x220]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441dd3
sub ecx, edx
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x238]
call fcn.004085a0
cmp dword [ebp - 0x224], 0x10
lea eax, [ebp - 0x238]
push 0x5e2370
cmovae eax, dword [ebp - 0x238]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.005418e3
add esp, 0xc
test eax, eax
jne 0x441e2b
push dword [ebp - 0x18]
call fcn.005413f4
add esp, 4
mov esi, 1
jmp 0x441e2d
xor esi, esi
cmp dword [ebp - 0x224], 0x10
jb 0x441e44
push dword [ebp - 0x238]
call fcn.0053e195
add esp, 4
test esi, esi
je 0x441f4e
push 0xb8
lea eax, [ebp - 0x320]
push 0
push eax
call fcn.00540250
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x320]
call fcn.00443300
mov byte [ebp - 4], 2
lea edi, [ebx + 0x44]
xor esi, esi
lea ebx, [ebx]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edi
mov byte [ecx], 0
call fcn.004083b0
movdqa xmm0, xmmword [0x5e6d60]
lea eax, [ebp - 0x220]
movdqu xmmword [ebp - 0x334], xmm0
mov dword [ebp - 0x324], 0xbff2
push dword [ebp + esi*4 - 0x334]
push ecx
push eax
mov ecx, ebx
call fcn.00440760
inc esi
cmp esi, 5
jb 0x441e80
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x320]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x320]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x324], eax
lea ecx, [ebp - 0x310]
call fcn.004434e0
mov eax, dword [ebp - 0x320]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x320]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x324], eax
lea eax, [ebp - 0x2b0]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00565104
jmp 0x442156
mov dword [ebp - 0x224], 0xf
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x238], 0
mov byte [ebp - 4], 3
lea edi, [ebx + 0x44]
xor esi, esi
movdqa xmm0, xmmword [0x5e6d60]
xor eax, eax
movdqu xmmword [ebp - 0x334], xmm0
mov dword [ebp - 0x324], 0xbff2
push dword [ebp + esi*4 - 0x334]
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x18]
push 0x5dc5b8
push eax
call fcn.00444ad0
add esp, 0xc
lea ecx, [ebp - 0x238]
push 0xa
push str.127.0.0.1:
call fcn.00408210
cmp byte [ebp - 0x18], 0
jne 0x441fc9
xor eax, eax
jmp 0x441fd9
lea eax, [ebp - 0x18]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x441fd0
sub eax, edx
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x238]
call fcn.00408210
push 1
push 0x5e2828
lea ecx, [ebp - 0x238]
call fcn.00408210
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x238]
call fcn.00408150
push 1
push 0x5dba44
lea ecx, [ebp - 0x238]
call fcn.00408210
inc esi
cmp esi, 5
jb 0x441f72
push 0xa8
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00540250
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x310]
call fcn.00443ef0
lea edx, [ebx + 0x14]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x310]
call fcn.0041b2e0
mov edx, 0x5dba44
mov ecx, eax
call fcn.0041b540
lea edx, [ebx + 0x2c]
lea ecx, [ebp - 0x310]
call fcn.0041b2e0
mov edx, 0x5dba44
mov ecx, eax
call fcn.0041b540
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x310]
call fcn.0041b2e0
lea ecx, [ebp - 0x30c]
call fcn.00444670
test eax, eax
jne 0x4420cc
mov eax, dword [ebp - 0x310]
lea ecx, [ebp - 0x310]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x4420c4
or eax, 4
push 0
push eax
call fcn.0040d550
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x310]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x310]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x314], eax
lea ecx, [ebp - 0x30c]
call fcn.004434e0
mov eax, dword [ebp - 0x310]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x310]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x314], eax
lea eax, [ebp - 0x2b0]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00565104
add esp, 4
cmp dword [ebp - 0x224], 0x10
jb 0x442159
push dword [ebp - 0x238]
call fcn.0053e195
add esp, 4
cmp dword [ebp - 0x23c], 0x10
jb 0x442170
push dword [ebp - 0x250]
call fcn.0053e195
add esp, 4
cmp dword [ebp - 0x254], 0x10
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x250], 0
jb 0x4421a2
push dword [ebp - 0x268]
call fcn.0053e195
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret