Function at 0x1001a0a0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10091c1e
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x100cb9b0]
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, dword [ebp + 8]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.100165b0
push 1
mov ecx, eax
call fcn.100418d0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100686c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push str.LdsAccount
push eax
call esi
push 0x100a14e0
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001a152
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
call fcn.100165b0
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.10041580
push str.accountplugin.log
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
call esi
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
push 0xa00000
push 0
push 1
lea eax, [ebp - 0x218]
push eax
call fcn.1002d060
call fcn.1002cf70
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x1001a2fb
push 0x62
push 0x100a1510
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.10005fe0
push 3
push 0x100a150c
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.10005fe0
push 0x2b
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2fc]
call fcn.100083b0
mov esi, eax
push str.AccountPluginClient::Init
push esi
mov byte [ebp - 4], 3
call fcn.10006b40
add esp, 8
call fcn.1002cf70
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2fc]
call fcn.10009c50
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x1001a2a2
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001a298
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001a49a
push edx
push ecx
call fcn.1004b366
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x1001a2fb
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001a2f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001a49f
push edx
push ecx
call fcn.1004b366
add esp, 8
call fcn.1000b780
push 0
push str.accountplugin
push 1
mov ecx, eax
call fcn.1004fbb0
call fcn.1000b780
push 0
push 0
push 1
push 0x100a15c8
push str.beload
mov ecx, eax
call fcn.1004fbd0
mov eax, dword [ebp + 0xc]
lea edi, [ebx + 8]
mov dword [ebx + 4], eax
cmp dword [edi], 0
jne 0x1001a431
push 0x60
call fcn.1004b336
add esp, 4
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x1001a362
push ebx
mov ecx, eax
call fcn.1001f5e0
mov ecx, eax
jmp 0x1001a364
xor ecx, ecx
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 0
cmp edi, eax
je 0x1001a380
mov edx, dword [edi]
mov dword [edi], ecx
test edx, edx
je 0x1001a38b
mov eax, dword [edx]
mov ecx, edx
jmp 0x1001a386
test ecx, ecx
je 0x1001a38b
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push dword [ebx + 0xa4]
mov ecx, dword [edi]
push dword [ebx + 4]
call fcn.100205c0
mov esi, dword [edi]
push dword [ebp - 0x264]
lea eax, [esi + 0x20]
push eax
push 0x100ca6b0
push section..data
push 0x100cf778
call fcn.100138c0
add esp, 0x14
movzx eax, ax
mov ecx, esi
push 0
push eax
push 0
push 0
push 0x80000000
push 0
push 0
push 0
call fcn.10015fc0
mov ecx, dword [edi]
sub esp, 0x28
mov eax, esp
push 0x8525
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_ae504d05d213506d676ddac5cc20a5e0___void__void__.0
mov dword [eax + 4], ebx
mov dword [eax + 0x24], eax
call fcn.1001fd40
mov ecx, dword [edi]
sub esp, 0x28
mov eax, esp
push 0x8526
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_0a86ef4d6d40d8340de13ec5c9210a19___void__void__.0
mov dword [eax + 4], ebx
mov dword [eax + 0x24], eax
call fcn.1001fd40
mov ecx, dword [edi]
sub esp, 0x28
mov eax, esp
push 0x8527
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_b3cffd2cc41b871fb00cd9a84754788f___void__void__.0
mov dword [eax + 4], ebx
mov dword [eax + 0x24], eax
call fcn.1001fd40
mov eax, dword [edi]
lea ecx, [ebx + 0xc]
push dword [eax + 4]
call fcn.1000c880
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x1001a47a
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001a470
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001a4a4
push edx
push ecx
call fcn.1004b366
add esp, 8
xor eax, eax
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.1004b6e5
mov esp, ebp
pop ebp
ret 8
call fcn.1006b649
call fcn.1006b649
call fcn.1006b649
int3