Function at 0x100187a0
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007b089
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4b8
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 8]
push edi
mov dword [esp + 0x34], ecx
call fcn.10012c60
xor edi, edi
push edi
push 0x10081bf2
mov ecx, esi
mov dword [esi + 0x1c], edi
call fcn.100048d0
push edi
lea ecx, [esi + 4]
push 0x10081bf2
call fcn.100048d0
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
mov dword [esp + 0x4cc], edi
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
mov eax, dword [ebx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebx - 8]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x4cc], 1
jge 0x10018852
push 0x104
lea ecx, [esp + 0x24]
call fcn.100029f0
mov ebx, dword [esp + 0x20]
mov eax, dword [0x10098990]
push 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp ebx, edi
jne 0x1001886c
xor eax, eax
jmp 0x10018880
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10018871
sub eax, edx
js 0x10018ed4
cmp eax, dword [ebx - 8]
jg 0x10018ed4
push 0x5c
mov dword [ebx - 0xc], eax
push ebx
mov byte [eax + ebx], 0
call fcn.10069f52
add esp, 8
cmp eax, edi
jne 0x100188a4
or eax, 0xffffffff
jmp 0x100188a6
sub eax, ebx
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
call fcn.10008ae0
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x18]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x38]
push str._s_theme_s
push ecx
mov byte [esp + 0x4dc], 2
call fcn.10004e20
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x4cc], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100188ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x20], eax
call fcn.10002a40
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
push 0xc
push 0x10082560
lea ecx, [esp + 0x20]
mov byte [esp + 0x4d4], 3
call fcn.1000cde0
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call edi
cmp eax, 0xffffffff
jne 0x10018960
mov eax, dword [esi + 0x30]
mov esi, dword [esp + 0x18]
push 0x1388
push 1
push 0
push esi
push eax
call fcn.10021df0
add esp, 0x14
jmp 0x10018964
mov esi, dword [esp + 0x18]
push esi
call edi
cmp eax, 0xffffffff
jne 0x100189f3
lea eax, [esi - 0x10]
mov byte [esp + 0x4cc], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018992
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x4cc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100189b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x4cc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100189da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x4c4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
push 0x1b6
push 1
push esi
lea ecx, [esp + 0x50]
call fcn.10017b20
sub esp, 0x18
mov eax, esp
mov dword [eax], 0
mov ecx, dword [0x10098ae0]
mov dword [eax + 8], ecx
mov edx, dword [0x10098ae4]
mov dword [eax + 0xc], edx
mov ecx, dword [0x10096890]
mov dword [eax + 0x10], ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x4e4], 4
mov dword [esp + 0x44], esp
call fcn.1000f480
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 4]
mov ecx, dword [esp + eax + 0x48]
add edx, 4
test ecx, ecx
jne 0x10018df1
mov bl, 7
lea esp, [esp]
mov byte [esp + 0xd8], 0
xor eax, eax
mov ecx, 0xf9
lea edi, [esp + 0xd9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [edx]
push 0xa
lea ecx, [esp + ecx + 0x44]
call fcn.1000ff50
lea ecx, [esp + 0xd8]
push eax
push 0x104
push ecx
lea ecx, [esp + 0x4c]
call fcn.10010570
lea eax, [esp + 0xd8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10018ab0
sub eax, edx
mov dword [esp + 0x3c], eax
je 0x10018dd3
lea edx, [esp + 0xd8]
push edx
lea ecx, [esp + 0x14]
call fcn.10005e50
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x4cc], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x4cc], 6
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov byte [esp + 0x4cc], bl
jl 0x10018c0a
push 0x10082478
push eax
call fcn.10069ea0
add esp, 8
test eax, eax
je 0x10018c0a
mov ecx, dword [esp + 0x10]
sub eax, ecx
test eax, eax
jle 0x10018c0a
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x10018b53
or eax, 0xffffffff
jmp 0x10018b6e
push 0x10082478
push ecx
call fcn.10069ea0
add esp, 8
test eax, eax
jne 0x10018b6a
or eax, 0xffffffff
jmp 0x10018b6e
sub eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
call fcn.10008ae0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4d0], 8
call fcn.10004aa0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x4cc], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018bb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx - 0xc]
mov eax, dword [eax - 0xc]
sub eax, edx
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x18]
call fcn.10008dd0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x4d0], 9
call fcn.10004aa0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x4cc], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018c0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x14]
call fcn.1000d0f0
mov ecx, eax
call fcn.1000cd40
lea ecx, [esp + 0xc]
call fcn.1000d0f0
mov ecx, eax
call fcn.1000cd40
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 4]
mov esi, dword [edx - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, esi
or eax, ecx
jge 0x10018c52
push esi
lea ecx, [esp + 0x10]
call fcn.100029f0
mov edx, dword [esp + 0xc]
push edx
call fcn.1006a0f9
add esp, 4
test esi, esi
jl 0x10018ed4
mov eax, dword [esp + 0xc]
cmp esi, dword [eax - 8]
jg 0x10018ed4
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0xc]
mov byte [esi + eax], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x10018d61
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x10018d61
jl 0x10018d61
push str.http:__
push ecx
call fcn.10069ea0
add esp, 8
test eax, eax
je 0x10018d61
sub eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
jne 0x10018d61
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x4d0], 0xa
call fcn.10004aa0
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x2c]
call fcn.10004aa0
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x24]
push eax
call fcn.100186f0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x4cc], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018d43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018d61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x4cc], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018d87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x4cc], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018dad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x4cc], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018dd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 4]
mov ecx, dword [esp + eax + 0x48]
add edx, 4
test ecx, ecx
je 0x10018a60
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x48]
call fcn.100128f0
test eax, eax
jne 0x10018e23
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x48]
mov edx, dword [esp + ecx + 0x68]
lea ecx, [esp + ecx + 0x40]
or eax, 2
test edx, edx
jne 0x10018e1b
or eax, 4
push 0
push eax
call fcn.10068261
lea ecx, [esp + 0xa4]
mov byte [esp + 0x4cc], 3
call fcn.10017c60
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa4], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.10068177
lea eax, [esi - 0x10]
mov byte [esp + 0x4cc], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10018e70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x4cc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018e93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x4cc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018eb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x4c4]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10001330
int3