Function at 0x465080
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513e47
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x5750c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
test byte [0x57c7a8], 1
mov ebx, ecx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 4], esi
jne 0x4650f0
or dword [0x57c7a8], 1
push 0x57c78c
mov byte [ebp - 4], 1
call fcn.004672e0
add esp, 4
push 0x52bc60
call fcn.0045f177
add esp, 4
mov byte [ebp - 4], 0
cmp dword [0x57c79c], esi
jne 0x465113
push 0x55d72c
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x90], str.Failed_to_retrieve_local_App_data_path
call sub.MSVCR100.dll__CxxThrowException
test byte [0x57c7a8], 2
jne 0x46514f
or dword [0x57c7a8], 2
push 0x575690
push 0x57c78c
push 0x57c770
mov byte [ebp - 4], 2
call fcn.00464310
add esp, 0xc
push 0x52bc20
call fcn.0045f177
add esp, 4
mov byte [ebp - 4], 0
cmp dword [0x57c784], 8
mov eax, dword [0x57c770]
jae 0x465162
mov eax, 0x57c770
push esi
push eax
call dword [sym.imp.MSVCR100.dll__waccess_s]
add esp, 8
cmp eax, 2
jne 0x465264
push 7
push 0x53cb1c
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x30], 0
call fcn.00407680
mov ecx, dword [0x57c784]
mov eax, dword [0x57c770]
mov byte [ebp - 4], 3
cmp ecx, 8
jae 0x4651ac
mov eax, 0x57c770
mov edx, dword [0x57c780]
mov esi, dword [0x57c770]
lea edi, [eax + edx*2]
cmp ecx, 8
jae 0x4651c5
mov esi, 0x57c770
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
mov ebx, 0x10
cmp edx, ebx
jae 0x4651d7
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x20]
add ecx, eax
cmp edx, ebx
mov edx, dword [ebp - 0x30]
jae 0x4651e6
lea edx, [ebp - 0x30]
add eax, edx
mov edx, dword [ebp - 0x88]
push edx
push edi
push esi
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00464b90
push 1
push 0x553798
lea ecx, [ebp - 0x30]
call fcn.00413b00
cmp dword [ebp - 0x20], 0x104
jae 0x465247
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jae 0x46521e
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_system]
add esp, 4
test eax, eax
je 0x465247
push 0x55d72c
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], str.Failed_to_create_log_folder
call sub.MSVCR100.dll__CxxThrowException
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1c], ebx
jb 0x46525c
mov ecx, dword [ebp - 0x30]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebx, dword [ebp - 0x88]
xor esi, esi
lea edx, [ebp - 0x84]
push edx
call fcn.00466ef0
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x74], esi
jne 0x465297
push 0x55d72c
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x53caa0
call sub.MSVCR100.dll__CxxThrowException
push 0x53ca9c
lea ecx, [ebp - 0x68]
push 0x57c770
push ecx
call fcn.004643d0
add esp, 0xc
lea edx, [ebp - 0x84]
push edx
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 5
call fcn.004644c0
add esp, 0xc
push str..log
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov byte [ebp - 4], 6
call fcn.00464510
add esp, 0xc
cmp dword [ebp - 0x1c], 8
jb 0x4652ed
mov edx, dword [ebp - 0x30]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, 7
xor eax, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], ax
mov eax, 8
mov byte [ebp - 4], 9
cmp dword [ebp - 0x54], eax
jb 0x46531b
mov ecx, dword [ebp - 0x68]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [edi + 1]
xor edx, edx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], esi
mov word [ebp - 0x68], dx
cmp byte [0x57c760], dl
jne 0x465355
cmp dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x4c]
jae 0x46533a
lea eax, [ebp - 0x4c]
push 0x40
push 2
lea esi, [ebx + 0xb8]
push eax
mov ecx, esi
call fcn.004633d0
mov byte [0x57c760], 1
jmp 0x465372
cmp dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x4c]
jae 0x465360
lea eax, [ebp - 0x4c]
push 0x40
push 8
lea esi, [ebx + 0xb8]
push eax
mov ecx, esi
call fcn.004633d0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
test byte [ecx + ebx + 0xc4], 6
je 0x46539c
push 0x55d72c
lea edx, [ebp - 0x8c]
push edx
mov dword [ebp - 0x8c], 0x53ca60
call sub.MSVCR100.dll__CxxThrowException
mov esi, 8
cmp dword [ebp - 0x38], esi
jb 0x4653b2
mov eax, dword [ebp - 0x4c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], cx
cmp dword [ebp - 0x70], esi
jb 0x4653d6
mov edx, dword [ebp - 0x84]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x4653e2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045f06e
mov esp, ebp
pop ebp
ret