Function at 0x47cd94
Capabilities:
Extract resource via kernel32 functions
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x47cd9d
mov eax, dword [ebp - 4]
add esp, 0xfffffff8
push ebx
push esi
push edi
mov byte [ebp - 1], cl
mov ebx, edx
mov esi, dword [ebp + 8]
cmp dword [0x4c244c], 0
je 0x47cdc8
xor eax, eax
jmp 0x47d368
mov dword [0x4d0f7c], eax
xor edx, edx
mov byte [0x4d1080], dl
mov byte [0x4d1000], dl
mov byte [0x4d0f80], dl
mov byte [0x4d1480], 0
mov dword [0x4d16cc], 0
mov dword [0x4d16d0], 0
xor eax, eax
xor edx, edx
mov dword [0x4d16ec], eax
mov dword [0x4d16f0], edx
mov dword [0x4d16e4], eax
mov dword [0x4d16e8], edx
mov dword [0x4d16dc], eax
mov dword [0x4d16e0], edx
mov dword [0x4d16d4], eax
mov dword [0x4d16d8], edx
mov byte [0x4d16f8], 0
xor ecx, ecx
mov dword [0x4d16f4], ecx
call fcn.0049d37c
mov dword [0x4d16c4], eax
xor eax, eax
mov dword [0x4d0f78], eax
xor edx, edx
mov dword [0x4d16fc], edx
xor ecx, ecx
mov dword [0x4d16c0], ecx
mov byte [0x4d16c8], 0
mov byte [0x4d16c9], 0
mov byte [0x4d1730], 0
mov eax, dword [0x4d0f7c]
test eax, eax
je 0x47ce88
cmp eax, 1
je 0x47ce88
cmp eax, 2
jne 0x47ceb9
mov dword [0x4c5740], 0
mov dword [0x4c5744], 0
cmp dword [0x4c4de4], 0
jne 0x47ceb9
mov dword [0x4c5748], 0
mov dword [0x4c574c], 0
cmp eax, 0xb
ja case.default.0x47cec2
jmp dword [eax*4 + 0x47cec9]
mov dword [0x4d172c], str.CMDWNDADD
mov byte [0x4d16c8], 1
jmp case.default.0x47cec2
mov eax, ebx
call fcn.0040ba60
push eax
cmp dword [0x4d0f7c], 1
jne 0x47cf27
mov eax, 0x20a
jmp 0x47cf2c
mov eax, 0x20b
call fcn.0041202c
push eax
push 0x4d0f80
call fcn.00497eb8
add esp, 0xc
cmp dword [0x4c4de4], 0
je 0x47cf51
cmp dword [0x4c573c], 1
jg 0x47cf70
mov eax, 0x4c319c
call fcn.0046273c
test eax, eax
jne 0x47cf6c
mov ebx, dword [0x4c33a4]
test ebx, ebx
je 0x47cf70
dec ebx
je 0x47cf70
xor eax, eax
jmp 0x47cf75
mov eax, 1
mov byte [0x4d16c8], al
mov eax, 0x4c319c
call fcn.0046273c
test eax, eax
setne dl
and edx, 1
mov byte [0x4d16c9], dl
mov dword [0x4d172c], 0x4aa168
jmp case.default.0x47cec2
mov eax, ebx
call fcn.0040ba60
push eax
mov eax, 0x20c
call fcn.0041202c
push eax
push 0x4d0f80
call fcn.00497eb8
add esp, 0xc
mov dword [0x4d172c], 0x4aa172
jmp case.default.0x47cec2
mov eax, ebx
call fcn.0040ba60
push eax
mov eax, 0x20d
call fcn.0041202c
push eax
push 0x4d0f80
call fcn.00497eb8
add esp, 0xc
mov dword [0x4d172c], 0x4aa172
jmp case.default.0x47cec2
mov eax, ebx
call fcn.0040ba60
push eax
mov eax, 0x211
call fcn.0041202c
push eax
push 0x4d0f80
call fcn.00497eb8
add esp, 0xc
mov dword [0x4d172c], 0x4aa172
jmp case.default.0x47cec2
mov eax, 0x223
call fcn.0041202c
push eax
push 0x4d0f80
call fcn.00494f58
add esp, 8
mov dword [0x4d172c], 0x4aa172
jmp case.default.0x47cec2
mov eax, 0x50b
call fcn.0041202c
push eax
push 0x4d0f80
call fcn.00494f58
add esp, 8
mov dword [0x4d172c], 0x4aa17e
jmp case.default.0x47cec2
mov dword [0x4d172c], str.CMDWNDFIND
jmp case.default.0x47cec2
mov eax, 0x543
call fcn.0041202c
push eax
push 0x4d0f80
call fcn.00494f58
add esp, 8
mov dword [0x4d172c], 0x4aa172
jmp case.default.0x47cec2
mov eax, 0x556
call fcn.0041202c
push eax
push 0x4d0f80
call fcn.00494f58
add esp, 8
mov dword [0x4d172c], 0x4aa172
jmp case.default.0x47cec2
mov dword [0x4d172c], str.CMDWNDBENCH
push 5
push dword [0x4d172c]
push dword [0x4af754]
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
push ebx
push dword [0x4af754]
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 8], eax
push ebx
push dword [0x4af754]
call sub.KERNEL32.DLL_SizeofResource
mov edi, eax
push edi
push 0
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
push edi
push dword [ebp - 8]
push ebx
call fcn.00494d68
add esp, 0xc
cmp dword [0x4c4de4], 1
je 0x47d13c
push dword [0x4c2440]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x47d13c
xor eax, eax
jmp 0x47d141
mov eax, 1
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x47d15a
mov edx, dword [ebx]
and edx, 0xbfffffff
or edx, 0x800a0800
mov dword [ebx], edx
push 0
test esi, esi
jne 0x47d165
mov esi, fcn.0047d374
push esi
cmp dword [0x4c4de4], 1
jne 0x47d173
xor eax, eax
jmp 0x47d178
mov eax, dword [0x4c2440]
push eax
push ebx
push dword [0x4af754]
call sub.USER32.DLL_CreateDialogIndirectParamA
cmp byte [ebp - 9], 0
mov edi, eax
mov dword [0x4c244c], edi
je 0x47d1cc
mov eax, 0x4c2c80
mov dl, 1
call fcn.00484ad0
push eax
push 0
push 0x80
push edi
call sub.USER32.DLL_SendMessageA
mov eax, 0x4c2c80
xor edx, edx
call fcn.00484ad0
push eax
push 1
push 0x80
push dword [0x4c244c]
call sub.USER32.DLL_SendMessageA
cmp dword [0x4d0f7c], 6
jne 0x47d307
mov byte [ebp - 0x200c], 0
cmp byte [0x4b73d4], 0
je 0x47d23b
push 0x4aa1a9
mov eax, 0x4b73d4
call fcn.0040ba60
push eax
call fcn.00494f0c
add esp, 8
test eax, eax
jne 0x47d211
mov eax, 0x210
call fcn.0041202c
jmp 0x47d21b
mov eax, 0x20f
call fcn.0041202c
push eax
push str.___s
lea edx, [ebp - 0x200c]
push edx
call fcn.00497eb8
add esp, 0xc
lea eax, [ebp - 0x200c]
call fcn.0047ea94
cmp byte [0x4b83d4], 0
je 0x47d26e
mov eax, 0x20e
call fcn.0041202c
push eax
push str.___s
lea edx, [ebp - 0x200c]
push edx
call fcn.00497eb8
add esp, 0xc
lea eax, [ebp - 0x200c]
call fcn.0047ea94
cmp dword [0x4b9068], 0
je 0x47d2a1
mov eax, 0x214
call fcn.0041202c
push eax
push str.___s
lea edx, [ebp - 0x200c]
push edx
call fcn.00497eb8
add esp, 0xc
lea eax, [ebp - 0x200c]
call fcn.0047ea94
cmp byte [0x4b9189], 0
je 0x47d2d4
mov eax, 0x213
call fcn.0041202c
push eax
push str.___s
lea edx, [ebp - 0x200c]
push edx
call fcn.00497eb8
add esp, 0xc
lea eax, [ebp - 0x200c]
call fcn.0047ea94
cmp byte [0x4b907e], 0
je 0x47d307
mov eax, 0x349
call fcn.0041202c
push eax
push str.___s
lea edx, [ebp - 0x200c]
push edx
call fcn.00497eb8
add esp, 0xc
lea eax, [ebp - 0x200c]
call fcn.0047ea94
cmp byte [ebp - 1], 0
je 0x47d323
push 0
push 0x6e
push 0x111
push dword [0x4c244c]
call sub.USER32.DLL_SendMessageA
jmp 0x47d330
push 5
push dword [0x4c244c]
call sub.USER32.DLL_ShowWindow
push ebx
call sub.KERNEL32.DLL_GlobalFree
cmp byte [0x4d0f80], 0
jne 0x47d354
push 0x80
push 0x4d0f80
push dword [0x4c244c]
call sub.USER32.DLL_GetWindowTextA
cmp dword [0x4c244c], 0
jne 0x47d361
xor eax, eax
jmp 0x47d368
call fcn.0047de20
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4