Function at 0x472a98
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 0x472aa1
add esp, 0xfffffaf4
mov eax, dword [ebp - 4]
cmp dword [0x4c4e70], 0
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov esi, dword [ebp + 8]
je 0x472ad0
xor eax, eax
jmp 0x4730e8
mov dword [0x4d1ae8], eax
xor edx, edx
mov byte [0x4d1bec], dl
mov byte [0x4d1b6c], dl
mov byte [0x4d1aec], dl
mov byte [0x4d1fec], 0
mov byte [0x4d2237], 0
mov dword [0x4d2258], 0
mov dword [0x4d225c], 0
xor eax, eax
xor edx, edx
mov dword [0x4d2278], eax
mov dword [0x4d227c], edx
mov dword [0x4d2270], eax
mov dword [0x4d2274], edx
mov dword [0x4d2268], eax
mov dword [0x4d226c], edx
mov dword [0x4d2260], eax
mov dword [0x4d2264], edx
mov byte [0x4d2284], 0
mov byte [0x4d2285], 0
xor ecx, ecx
mov dword [0x4d2280], ecx
call fcn.004a0080
mov dword [0x4d2230], eax
xor eax, eax
mov dword [0x4d1ae4], eax
xor edx, edx
mov dword [0x4d2288], edx
xor ecx, ecx
mov dword [0x4d222c], ecx
mov byte [0x4d2234], 0
mov byte [0x4d2235], 0
mov byte [0x4d22bc], 0
call fcn.004643f0
xor ecx, ecx
mov cl, al
mov edx, 0x4ab50e
mov eax, 0x4ab504
call fcn.0046139c
test eax, eax
setne al
and eax, 1
mov byte [0x4d2236], al
mov eax, dword [0x4d1ae8]
test eax, eax
je 0x472bc3
cmp eax, 1
je 0x472bc3
cmp eax, 2
jne 0x472bf4
mov dword [0x4c8160], 0
mov dword [0x4c8164], 0
cmp dword [0x4c7808], 0
jne 0x472bf4
mov dword [0x4c8168], 0
mov dword [0x4c816c], 0
cmp eax, 0xb
ja case.default.0x472bfd
jmp dword [eax*4 + 0x472c04]
mov dword [0x4d22b8], 0x4ab520
mov byte [0x4d2234], 1
jmp case.default.0x472bfd
mov eax, dword [ebp - 4]
call fcn.0040bd28
push eax
mov eax, 0x20a
cmp dword [0x4d1ae8], 1
je 0x472c62
inc eax
call fcn.004125d0
push eax
push 0x4d1aec
call fcn.0049abd0
add esp, 0xc
cmp dword [0x4c7808], 0
je 0x472c87
cmp dword [0x4c815c], 1
jg 0x472ca6
mov eax, 0x4c5bc4
call fcn.004575c4
test eax, eax
jne 0x472ca2
mov ebx, dword [0x4c5dcc]
test ebx, ebx
je 0x472ca6
dec ebx
je 0x472ca6
xor eax, eax
jmp 0x472cab
mov eax, 1
mov byte [0x4d2234], al
mov eax, 0x4c5bc4
call fcn.004575c4
test eax, eax
setne dl
and edx, 1
mov byte [0x4d2235], dl
mov dword [0x4d22b8], 0x4ab520
jmp case.default.0x472bfd
mov eax, dword [ebp - 4]
call fcn.0040bd28
push eax
mov eax, 0x20c
call fcn.004125d0
push eax
push 0x4d1aec
call fcn.0049abd0
add esp, 0xc
mov dword [0x4d22b8], 0x4ab52a
jmp case.default.0x472bfd
mov eax, dword [ebp - 4]
call fcn.0040bd28
push eax
mov eax, 0x20d
call fcn.004125d0
push eax
push 0x4d1aec
call fcn.0049abd0
add esp, 0xc
mov dword [0x4d22b8], 0x4ab52a
jmp case.default.0x472bfd
mov eax, dword [ebp - 4]
call fcn.0040bd28
push eax
mov eax, 0x211
call fcn.004125d0
push eax
push 0x4d1aec
call fcn.0049abd0
add esp, 0xc
mov dword [0x4d22b8], 0x4ab52a
jmp case.default.0x472bfd
mov eax, 0x223
call fcn.004125d0
push eax
push 0x4d1aec
call fcn.00497c80
add esp, 8
mov dword [0x4d22b8], 0x4ab52a
jmp case.default.0x472bfd
mov eax, 0x50b
call fcn.004125d0
push eax
push 0x4d1aec
call fcn.00497c80
add esp, 8
mov dword [0x4d22b8], 0x4ab536
jmp case.default.0x472bfd
mov dword [0x4d22b8], 0x4ab544
jmp case.default.0x472bfd
mov eax, 0x543
call fcn.004125d0
push eax
push 0x4d1aec
call fcn.00497c80
add esp, 8
mov dword [0x4d22b8], 0x4ab52a
jmp case.default.0x472bfd
mov eax, 0x556
call fcn.004125d0
push eax
push 0x4d1aec
call fcn.00497c80
add esp, 8
mov dword [0x4d22b8], 0x4ab52a
jmp case.default.0x472bfd
mov dword [0x4d22b8], 0x4ab54f
push 5
push dword [0x4d22b8]
push dword [0x4b2148]
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
push ebx
push dword [0x4b2148]
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0xc], eax
push ebx
push dword [0x4b2148]
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 - 0xc]
push ebx
call fcn.00497a90
add esp, 0xc
cmp dword [0x4c7808], 1
je 0x472e75
push dword [0x4c4e64]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x472e75
xor eax, eax
jmp 0x472e7a
mov eax, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x472e93
mov edx, dword [ebx]
and edx, 0xbfffffff
or edx, 0x800a0800
mov dword [ebx], edx
push 0
test esi, esi
jne 0x472e9e
mov esi, fcn.004730f4
push esi
cmp dword [0x4c7808], 1
jne 0x472eac
xor eax, eax
jmp 0x472eb1
mov eax, dword [0x4c4e64]
push eax
push ebx
push dword [0x4b2148]
call sub.USER32.DLL_CreateDialogIndirectParamA
cmp byte [ebp - 0xd], 0
mov edi, eax
mov dword [0x4c4e70], edi
je 0x472f05
mov eax, 0x4c56a4
mov dl, 1
call fcn.0047ab08
push eax
push 0
push 0x80
push edi
call sub.USER32.DLL_SendMessageA
mov eax, 0x4c56a4
xor edx, edx
call fcn.0047ab08
push eax
push 1
push 0x80
push dword [0x4c4e70]
call sub.USER32.DLL_SendMessageA
cmp dword [0x4d1ae8], 6
jne 0x473040
mov byte [ebp - 0x2010], 0
cmp byte [0x4b9dc8], 0
je 0x472f74
push 0x4ab561
mov eax, 0x4b9dc8
call fcn.0040bd28
push eax
call fcn.00497c34
add esp, 8
test eax, eax
jne 0x472f4a
mov eax, 0x210
call fcn.004125d0
jmp 0x472f54
mov eax, 0x20f
call fcn.004125d0
push eax
push 0x4ab55b
lea edx, [ebp - 0x2010]
push edx
call fcn.0049abd0
add esp, 0xc
lea eax, [ebp - 0x2010]
call fcn.004749b0
cmp byte [0x4badc8], 0
je 0x472fa7
mov eax, 0x20e
call fcn.004125d0
push eax
push 0x4ab55b
lea edx, [ebp - 0x2010]
push edx
call fcn.0049abd0
add esp, 0xc
lea eax, [ebp - 0x2010]
call fcn.004749b0
cmp dword [0x4bba64], 0
je 0x472fda
mov eax, 0x214
call fcn.004125d0
push eax
push 0x4ab55b
lea edx, [ebp - 0x2010]
push edx
call fcn.0049abd0
add esp, 0xc
lea eax, [ebp - 0x2010]
call fcn.004749b0
cmp byte [0x4bbb85], 0
je 0x47300d
mov eax, 0x213
call fcn.004125d0
push eax
push 0x4ab55b
lea edx, [ebp - 0x2010]
push edx
call fcn.0049abd0
add esp, 0xc
lea eax, [ebp - 0x2010]
call fcn.004749b0
cmp byte [0x4bba7a], 0
je 0x473040
mov eax, 0x349
call fcn.004125d0
push eax
push 0x4ab55b
lea edx, [ebp - 0x2010]
push edx
call fcn.0049abd0
add esp, 0xc
lea eax, [ebp - 0x2010]
call fcn.004749b0
cmp byte [ebp - 5], 0
je 0x47305c
push 0
push 0x6e
push 0x111
push dword [0x4c4e70]
call sub.USER32.DLL_SendMessageA
jmp 0x473069
push 5
push dword [0x4c4e70]
call sub.USER32.DLL_ShowWindow
push ebx
call sub.KERNEL32.DLL_GlobalFree
mov eax, dword [0x4d1ae8]
test eax, eax
je 0x473082
cmp eax, 1
je 0x473082
cmp eax, 2
jne 0x4730b6
push dword [ebp - 4]
mov eax, 0x28a
call fcn.004125d0
push eax
lea edx, [ebp - 0x2510]
push edx
call fcn.0049abd0
add esp, 0xc
lea ecx, [ebp - 0x2510]
push ecx
push 0xa5
push dword [0x4c4e70]
call sub.USER32.DLL_SetDlgItemTextA
cmp byte [0x4d1aec], 0
jne 0x4730d4
push 0x80
push 0x4d1aec
push dword [0x4c4e70]
call sub.USER32.DLL_GetWindowTextA
cmp dword [0x4c4e70], 0
jne 0x4730e1
xor eax, eax
jmp 0x4730e8
call fcn.00473bd8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4