Function at 0x52a0e4
Capabilities:
Enumerate gui resources
Read file via mapping

Disassembly:
push edi
push esi
push ebx
push ecx
mov eax, 0x30
call fcn.00697340
mov ecx, dword [esp + 0x30]
mov esi, ecx
mov ebx, dword [esp + 0x48]
cmp dword [esi + 0x10], 0
je 0x52a226
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x52a2e4
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [esi + 0x24], 0
je 0x52a286
mov edi, dword [esi + 0x1c]
mov edx, dword [esi + 0x10]
test edx, edx
je 0x52a158
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x2c]
mov edx, 2
push edx
push 1
push edx
push ecx
push dword [esi + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edx, dword [esi + 0x10]
test eax, eax
je 0x52a158
mov eax, dword [esp + 0x2c]
jmp 0x52a15a
xor eax, eax
mov dword [esp + 0x24], eax
mov edi, dword [esi + 0x24]
test edx, edx
je 0x52a18e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x30]
mov edx, 2
push edx
push 1
push edx
push ecx
push dword [esi + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x52a18e
mov eax, dword [esp + 0x30]
jmp 0x52a190
xor eax, eax
cmp dword [esp + 0x24], 0
je 0x52a226
mov dword [esp + 0x28], eax
test eax, eax
je 0x52a226
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 8
lea edx, [esp + 0x24]
mov dword [esp + 0x20], edx
test ebx, ebx
je 0x52a1e9
mov ecx, ebx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x52a1dc
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x52a1c7
dec eax
push eax
push ebx
push dword [esi + 0x20]
call fcn.006a7d10
add esp, 0xc
mov ebx, dword [esi + 0x28]
mov edx, dword [esi + 0x18]
test edx, edx
je 0x52a267
lea eax, [esp + 0x18]
push eax
push ebx
push 0x4a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x52a226
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x52a259
mov eax, dword [esp + 0x50]
test eax, eax
je 0x52a259
push dword [esi + 8]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x52a231
xor eax, eax
add esp, 0x34
pop ebx
pop esi
pop edi
ret 0x10
mov eax, dword [esp + 0x50]
lea edx, [eax - 1]
push edx
push dword [esi + 0x20]
mov ecx, dword [esp + 0x54]
push dword [ecx]
call fcn.006985c0
add esp, 0xc
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
mov edx, dword [esp + 0x50]
mov byte [edx + ecx - 1], 0
mov eax, 1
add esp, 0x34
pop ebx
pop esi
pop edi
ret 0x10
mov dword [esi + 0x18], 0
push esi
push 0x52a054
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [esi + 0x18]
test edx, edx
je 0x52a226
jmp 0x52a1f3
mov dword [esp + 8], 1
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], 0xc
lea edx, [esp]
push eax
push 0x100
push eax
push 4
push edx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x24], eax
test eax, eax
je 0x52a2d9
cmp eax, 0xffffffff
je 0x52a2d9
xor edx, edx
push 0x100
push edx
push edx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x52a122
xor eax, eax
add esp, 0x34
pop ebx
pop esi
pop edi
ret 0x10
mov edx, 1
mov dword [esp + 0x14], edx
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xc
lea ecx, [esp + 0xc]
push eax
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x52a111
xor eax, eax
add esp, 0x34
pop ebx
pop esi
pop edi
ret 0x10