Function at 0x1001aae0
Capabilities:
Enumerate gui resources
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017d658
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x101e40b0]
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 eax, ecx
mov dword [ebp - 0x4c], eax
lea edi, [eax + 0x28]
xor bl, bl
mov dword [ebp - 0x5c], edi
mov byte [ebp - 0x58], bl
test edi, edi
je 0x1001ab49
mov ecx, dword [edi]
test ecx, ecx
je 0x1001ab46
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1001ab3d
cmp eax, 0x80
je 0x1001ab3d
xor bl, bl
jmp 0x1001ab43
mov byte [edi + 4], 1
mov bl, 1
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 0x58], bl
mov dword [ebp - 4], 0
lea esi, [eax + 0x24]
mov dword [ebp - 0x54], esi
test esi, esi
je 0x1001ab6a
mov ecx, dword [esi]
test ecx, ecx
je 0x1001ab6a
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 1
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [eax]
call fcn.10014e60
mov ecx, dword [ebp - 0x4c]
add esp, 4
mov dword [ebp - 0x50], 0
mov eax, dword [ecx]
mov dword [ecx + 4], eax
add ecx, 0xc
cmp dword [ecx + 0x14], 8
jb 0x1001ab96
mov ecx, dword [ecx]
push 0x101b0790
push ecx
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x1001ace6
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x1001ace6
push 0
push 0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov eax, dword [ebp - 0x70]
add esp, 0xc
and eax, 0xffffff00
mov dword [ebp - 0x70], eax
and eax, 0xfffffeff
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 5
mov dword [ebp - 0x48], vtable.RCJson::Writer.0
mov byte [ebp - 4], 6
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x48], vtable.RCJson::FastWriter.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 7
mov word [ebp - 0x2c], 0
mov byte [ebp - 0x2a], 0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.100b5a40
mov byte [ebp - 4], 9
lea eax, [ebp - 0x28]
push dword [ebp - 0x50]
cmp dword [ebp - 0x14], 0x10
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp - 0x50]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
push dword [ebp - 0x4c]
push 0x10019670
call dword [sym.imp.USER32.dll_EnumWindows]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1001acbc
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001acb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001acb2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10177d58
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.100190a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
call fcn.100b77c0
mov byte [ebp - 4], 0
test esi, esi
je 0x1001ad02
mov eax, dword [esi]
test eax, eax
je 0x1001acfb
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1001ad22
test bl, bl
je 0x1001ad22
mov eax, dword [edi]
test eax, eax
je 0x1001ad1e
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [edi + 4], 0
mov dword [ebp - 0x5c], 0
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.10177d47
mov esp, ebp
pop ebp
ret