Function at 0x100254e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
lea ebx, [esi + 4]
mov ebp, 0x14
push 0x100536f0
mov ecx, ebx
call fcn.100261e0
add ebx, 0x28
dec ebp
jne 0x10025505
mov al, byte [esp + 0x13]
lea ebp, [esi + 0x324]
mov byte [ebp], al
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
mov dword [esi + 0x334], edi
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov esi, dword [ebp + 4]
mov ebx, dword [ecx]
cmp esi, edi
je 0x1002556f
mov al, byte [esi - 1]
test al, al
je 0x1002556f
cmp al, 0xff
je 0x1002556f
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
xor edi, edi
mov eax, dword [ebp + 8]
cmp eax, ebx
jae 0x10025578
mov ebx, eax
cmp ebx, edi
jbe 0x100255ad
mov ecx, dword [ebp + 4]
sub eax, ebx
push eax
lea edx, [ecx + ebx]
push edx
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
mov edi, dword [ebp + 8]
add esp, 0xc
sub edi, ebx
mov ecx, ebp
push 0
push edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x100255ad
push edi
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push 0x104
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jbe 0x100256b5
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
sub edx, ecx
cmp edx, edi
ja 0x10025606
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test edi, edi
jbe 0x10025644
mov ebx, dword [ebp + 8]
push 0
add ebx, edi
mov ecx, ebp
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x10025644
mov eax, dword [ebp + 4]
mov ecx, edi
mov edi, dword [ebp + 8]
lea esi, [esp + 0x18]
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ecx + ebx], 0
mov edi, str.gwlogger.cfg
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
repne scasb al, byte es:[edi]
mov eax, dword [edx]
mov edx, dword [ebp + 8]
not ecx
dec ecx
sub eax, edx
mov edi, ecx
cmp eax, edi
ja 0x1002566c
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test edi, edi
jbe 0x1002571c
mov ebx, dword [ebp + 8]
push 0
add ebx, edi
mov ecx, ebp
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1002571c
mov edx, dword [ebp + 4]
mov ecx, edi
mov edi, dword [ebp + 8]
mov esi, str.gwlogger.cfg
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
jmp 0x1002571c
mov edi, str.C:WINDOWSgwlogger.cfg
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
sub edx, ecx
cmp edx, esi
ja 0x100256dd
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x1002571c
mov ebx, dword [ebp + 8]
push 0
add ebx, esi
mov ecx, ebp
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1002571c
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov ecx, esi
add edi, eax
mov eax, ecx
mov esi, str.C:WINDOWSgwlogger.cfg
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ecx + ebx], 0
call sub.KERNEL32.dll_GetCurrentProcessId
mov esi, dword [esp + 0x14]
mov ecx, esi
mov dword [esi + 0x1738], eax
call fcn.100258f0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret