Function at 0x475d6c
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 0x475d75
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 [0x4b982c], 0
je 0x475da0
xor eax, eax
jmp 0x476340
mov dword [0x4c96e4], eax
xor edx, edx
mov byte [0x4c97e8], dl
mov byte [0x4c9768], dl
mov byte [0x4c96e8], dl
mov byte [0x4c9be8], 0
mov dword [0x4c9e34], 0
mov dword [0x4c9e38], 0
xor eax, eax
xor edx, edx
mov dword [0x4c9e54], eax
mov dword [0x4c9e58], edx
mov dword [0x4c9e4c], eax
mov dword [0x4c9e50], edx
mov dword [0x4c9e44], eax
mov dword [0x4c9e48], edx
mov dword [0x4c9e3c], eax
mov dword [0x4c9e40], edx
mov byte [0x4c9e60], 0
xor ecx, ecx
mov dword [0x4c9e5c], ecx
call fcn.00495aec
mov dword [0x4c9e2c], eax
xor eax, eax
mov dword [0x4c96e0], eax
xor edx, edx
mov dword [0x4c9e64], edx
xor ecx, ecx
mov dword [0x4c9e28], ecx
mov byte [0x4c9e30], 0
mov byte [0x4c9e31], 0
mov byte [0x4c9e98], 0
mov eax, dword [0x4c96e4]
test eax, eax
je 0x475e60
cmp eax, 1
je 0x475e60
cmp eax, 2
jne 0x475e91
mov dword [0x4bcb00], 0
mov dword [0x4bcb04], 0
cmp dword [0x4bc1ac], 0
jne 0x475e91
mov dword [0x4bcb08], 0
mov dword [0x4bcb0c], 0
cmp eax, 0xb
ja case.default.0x475e9a
jmp dword [eax*4 + 0x475ea1]
mov dword [0x4c9e94], str.CMDWNDADD
mov byte [0x4c9e30], 1
jmp case.default.0x475e9a
mov eax, ebx
call fcn.0040b578
push eax
cmp dword [0x4c96e4], 1
jne 0x475eff
mov eax, 0x20a
jmp 0x475f04
mov eax, 0x20b
call fcn.004116e0
push eax
push 0x4c96e8
call fcn.00490628
add esp, 0xc
cmp dword [0x4bc1ac], 0
je 0x475f29
cmp dword [0x4bcafc], 1
jg 0x475f48
mov eax, 0x4ba564
call fcn.0045d128
test eax, eax
jne 0x475f44
mov ebx, dword [0x4ba76c]
test ebx, ebx
je 0x475f48
dec ebx
je 0x475f48
xor eax, eax
jmp 0x475f4d
mov eax, 1
mov byte [0x4c9e30], al
mov eax, 0x4ba564
call fcn.0045d128
test eax, eax
setne dl
and edx, 1
mov byte [0x4c9e31], dl
mov dword [0x4c9e94], 0x4a1a38
jmp case.default.0x475e9a
mov eax, ebx
call fcn.0040b578
push eax
mov eax, 0x20c
call fcn.004116e0
push eax
push 0x4c96e8
call fcn.00490628
add esp, 0xc
mov dword [0x4c9e94], 0x4a1a42
jmp case.default.0x475e9a
mov eax, ebx
call fcn.0040b578
push eax
mov eax, 0x20d
call fcn.004116e0
push eax
push 0x4c96e8
call fcn.00490628
add esp, 0xc
mov dword [0x4c9e94], 0x4a1a42
jmp case.default.0x475e9a
mov eax, ebx
call fcn.0040b578
push eax
mov eax, 0x211
call fcn.004116e0
push eax
push 0x4c96e8
call fcn.00490628
add esp, 0xc
mov dword [0x4c9e94], 0x4a1a42
jmp case.default.0x475e9a
mov eax, 0x223
call fcn.004116e0
push eax
push 0x4c96e8
call fcn.0048d758
add esp, 8
mov dword [0x4c9e94], 0x4a1a42
jmp case.default.0x475e9a
mov eax, 0x50b
call fcn.004116e0
push eax
push 0x4c96e8
call fcn.0048d758
add esp, 8
mov dword [0x4c9e94], 0x4a1a4e
jmp case.default.0x475e9a
mov dword [0x4c9e94], str.CMDWNDFIND
jmp case.default.0x475e9a
mov eax, 0x543
call fcn.004116e0
push eax
push 0x4c96e8
call fcn.0048d758
add esp, 8
mov dword [0x4c9e94], 0x4a1a42
jmp case.default.0x475e9a
mov eax, 0x556
call fcn.004116e0
push eax
push 0x4c96e8
call fcn.0048d758
add esp, 8
mov dword [0x4c9e94], 0x4a1a42
jmp case.default.0x475e9a
mov dword [0x4c9e94], str.CMDWNDBENCH
push 5
push dword [0x4c9e94]
push dword [0x4a6fb8]
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
push ebx
push dword [0x4a6fb8]
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 8], eax
push ebx
push dword [0x4a6fb8]
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.0048d568
add esp, 0xc
cmp dword [0x4bc1ac], 1
je 0x476114
push dword [0x4b9820]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x476114
xor eax, eax
jmp 0x476119
mov eax, 1
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x476132
mov edx, dword [ebx]
and edx, 0xbfffffff
or edx, 0x800a0800
mov dword [ebx], edx
push 0
test esi, esi
jne 0x47613d
mov esi, fcn.0047634c
push esi
cmp dword [0x4bc1ac], 1
jne 0x47614b
xor eax, eax
jmp 0x476150
mov eax, dword [0x4b9820]
push eax
push ebx
push dword [0x4a6fb8]
call sub.USER32.DLL_CreateDialogIndirectParamA
cmp byte [ebp - 9], 0
mov edi, eax
mov dword [0x4b982c], edi
je 0x4761a4
mov eax, 0x4ba048
mov dl, 1
call fcn.0047d818
push eax
push 0
push 0x80
push edi
call sub.USER32.DLL_SendMessageA
mov eax, 0x4ba048
xor edx, edx
call fcn.0047d818
push eax
push 1
push 0x80
push dword [0x4b982c]
call sub.USER32.DLL_SendMessageA
cmp dword [0x4c96e4], 6
jne 0x4762df
mov byte [ebp - 0x200c], 0
cmp byte [0x4aebfc], 0
je 0x476213
push 0x4a1a79
mov eax, 0x4aebfc
call fcn.0040b578
push eax
call fcn.0048d70c
add esp, 8
test eax, eax
jne 0x4761e9
mov eax, 0x210
call fcn.004116e0
jmp 0x4761f3
mov eax, 0x20f
call fcn.004116e0
push eax
push str.___s
lea edx, [ebp - 0x200c]
push edx
call fcn.00490628
add esp, 0xc
lea eax, [ebp - 0x200c]
call fcn.00477974
cmp byte [0x4afbfc], 0
je 0x476246
mov eax, 0x20e
call fcn.004116e0
push eax
push str.___s
lea edx, [ebp - 0x200c]
push edx
call fcn.00490628
add esp, 0xc
lea eax, [ebp - 0x200c]
call fcn.00477974
cmp dword [0x4b0890], 0
je 0x476279
mov eax, 0x214
call fcn.004116e0
push eax
push str.___s
lea edx, [ebp - 0x200c]
push edx
call fcn.00490628
add esp, 0xc
lea eax, [ebp - 0x200c]
call fcn.00477974
cmp byte [0x4b09a1], 0
je 0x4762ac
mov eax, 0x213
call fcn.004116e0
push eax
push str.___s
lea edx, [ebp - 0x200c]
push edx
call fcn.00490628
add esp, 0xc
lea eax, [ebp - 0x200c]
call fcn.00477974
cmp byte [0x4b08a6], 0
je 0x4762df
mov eax, 0x349
call fcn.004116e0
push eax
push str.___s
lea edx, [ebp - 0x200c]
push edx
call fcn.00490628
add esp, 0xc
lea eax, [ebp - 0x200c]
call fcn.00477974
cmp byte [ebp - 1], 0
je 0x4762fb
push 0
push 0x6e
push 0x111
push dword [0x4b982c]
call sub.USER32.DLL_SendMessageA
jmp 0x476308
push 5
push dword [0x4b982c]
call sub.USER32.DLL_ShowWindow
push ebx
call sub.KERNEL32.DLL_GlobalFree
cmp byte [0x4c96e8], 0
jne 0x47632c
push 0x80
push 0x4c96e8
push dword [0x4b982c]
call sub.USER32.DLL_GetWindowTextA
cmp dword [0x4b982c], 0
jne 0x476339
xor eax, eax
jmp 0x476340
call fcn.00476dec
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4