Function at 0x475114
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7a4
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x475130
cmp dword [esi + 0x11c], 0
jne 0x475138
or eax, 0xffffffff
jmp 0x475403
xor ebx, ebx
call sub.KERNEL32.DLL_GetCurrentProcessId
mov dword [ebp - 0x10], eax
mov eax, dword [0x4d5a0c]
test eax, eax
je 0x4752af
push str.EnumProcesses
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edi, eax
push str.EnumProcessModules
mov eax, dword [0x4d5a0c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x20], eax
push str.GetModuleFileNameExA
mov edx, dword [0x4d5a0c]
push edx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x24], eax
test edi, edi
je 0x475193
cmp dword [ebp - 0x20], 0
je 0x475193
cmp dword [ebp - 0x24], 0
jne 0x475196
or ebx, 0xffffffff
test ebx, ebx
jne 0x4751b3
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x424]
push eax
push 0x400
push edx
call edi
test eax, eax
jne 0x4751b3
or ebx, 0xffffffff
test ebx, ebx
jne 0x4752b2
mov eax, dword [ebp - 0xc]
xor edx, edx
shr eax, 2
lea edi, [ebp - 0x424]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jge 0x4752b2
mov eax, dword [edi]
cmp eax, dword [ebp - 0x10]
je 0x47529b
push eax
push 0
push 0x410
call sub.KERNEL32.DLL_OpenProcess
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x47529b
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x1c]
push edx
push 4
push ecx
mov eax, dword [ebp - 0x18]
push eax
call dword [ebp - 0x20]
test eax, eax
jne 0x475220
mov edx, dword [ebp - 0x18]
push edx
call sub.KERNEL32.DLL_CloseHandle
jmp 0x47529b
mov ecx, dword [edi]
xor eax, eax
mov dword [ebp - 0x734], ecx
lea edx, [ebp - 0x528]
mov dword [ebp - 0x730], 1
mov dword [ebp - 0x72c], eax
mov byte [ebp - 0x528], 0
push 0x104
push edx
mov ecx, dword [ebp - 0x1c]
push ecx
mov eax, dword [ebp - 0x18]
push eax
call dword [ebp - 0x24]
mov byte [ebp - 0x425], 0
mov edx, dword [ebp - 0x18]
push edx
call sub.KERNEL32.DLL_CloseHandle
push 0
lea ecx, [ebp - 0x728]
push ecx
push 0
push 0
lea eax, [ebp - 0x528]
push eax
call fcn.004a51bc
add esp, 0x14
lea edx, [ebp - 0x734]
mov byte [ebp - 0x628], 0
push edx
push esi
call sym.Cari___.exe__Addsorteddata
add esp, 8
inc dword [ebp - 4]
add edi, 4
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jl 0x4751db
jmp 0x4752b2
or ebx, 0xffffffff
test ebx, ebx
je 0x4753e0
cmp dword [0x4d59f4], 0
je 0x4753e0
xor ebx, ebx
cmp dword [0x4d5a24], 0
je 0x4752e4
cmp dword [0x4d5a40], 0
je 0x4752e4
cmp dword [0x4d5a44], 0
jne 0x4752e7
or ebx, 0xffffffff
test ebx, ebx
jne 0x475301
push 0
push 2
call dword [0x4d5a24]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x475301
or ebx, 0xffffffff
test ebx, ebx
jne 0x4753e0
mov dword [ebp - 0x85c], 0x128
lea eax, [ebp - 0x85c]
push eax
mov edx, dword [ebp - 0x14]
push edx
call dword [0x4d5a40]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4753d7
mov eax, dword [ebp - 0x854]
cmp eax, dword [ebp - 0x10]
je 0x4753b9
mov dword [ebp - 0x734], eax
xor edx, edx
mov dword [ebp - 0x730], 1
mov dword [ebp - 0x72c], edx
xor eax, eax
push esi
lea edi, [ebp - 0x838]
or ecx, 0xffffffff
lea esi, [ebp - 0x528]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x728]
and ecx, 3
lea edx, [ebp - 0x528]
rep movsb byte es:[edi], byte [esi]
pop esi
mov byte [ebp - 0x425], 0
push 0
push eax
push 0
push 0
push edx
call fcn.004a51bc
add esp, 0x14
lea ecx, [ebp - 0x734]
mov byte [ebp - 0x628], 0
push ecx
push esi
call sym.Cari___.exe__Addsorteddata
add esp, 8
lea eax, [ebp - 0x85c]
push eax
mov edx, dword [ebp - 0x14]
push edx
call dword [0x4d5a44]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x475331
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.DLL_CloseHandle
test ebx, ebx
je 0x4753e9
or eax, 0xffffffff
jmp 0x475403
cmp dword [esi + 0x104], 0
jle 0x4753fd
push esi
push 0x477a90
call sub.USER32.DLL_EnumWindows
mov eax, dword [esi + 0x104]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret