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

Disassembly:
mov eax, 0x250c
call fcn.0049e650
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x2508], eax
mov ecx, dword [esp + 0x2514]
mov eax, dword [esp + 0x251c]
push ebx
xor ebx, ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
cmp dword [0x4db83c], ebx
je 0x4815ec
cmp dword [0x4f7748], 8
jne 0x4815ec
xor al, al
pop ebx
mov ecx, dword [esp + 0x2508]
xor ecx, esp
call fcn.0049e0c6
add esp, 0x250c
ret 0x10
mov eax, dword [esp + 0x2514]
push esi
mov byte [0x4f67b5], bl
mov byte [0x4f67b4], bl
mov dword [0x4f7748], eax
mov byte [0x4f6a48], bl
mov byte [0x4f6ac8], bl
cmp eax, 0xb
ja case.default.0x48161a
jmp dword [eax*4 + 0x481bf0]
mov dword [0x4f677c], str.CMDWNDADD
mov byte [0x4f67b5], 1
jmp case.default.0x48161a
push ecx
call fcn.0044d530
xor ecx, ecx
mov esi, 1
cmp dword [0x4f7748], esi
push eax
setne cl
add ecx, 0x20a
push ecx
call fcn.0045b8f0
push eax
push 0x4f6ac8
call fcn.0049e0d5
add esp, 0xc
cmp dword [0x4dbc60], ebx
je 0x481678
cmp dword [0x4dbd4c], esi
ja 0x48169e
cmp dword [0x4e0e20], ebx
je 0x48169e
mov ecx, 0x4e0c18
call fcn.00413520
test eax, eax
jne 0x481696
cmp dword [0x4e0e20], esi
je 0x48169e
mov byte [0x4f67b5], bl
jmp 0x4816a5
mov byte [0x4f67b5], 1
mov ecx, 0x4e0c18
call fcn.00413520
test eax, eax
je 0x4816c2
mov byte [0x4f67b4], 1
cmp dword [0x4e0e20], ebx
jne 0x4816c8
mov byte [0x4f67b4], bl
mov dword [0x4f677c], str.CMDWNDADD
jmp case.default.0x48161a
push ecx
call fcn.0044d530
push eax
push 0x20c
call fcn.0045b8f0
push eax
push 0x4f6ac8
call fcn.0049e0d5
add esp, 0xc
mov dword [0x4f677c], 0x4b4bb8
jmp case.default.0x48161a
push ecx
call fcn.0044d530
push eax
push 0x20d
jmp 0x4816e3
push ecx
call fcn.0044d530
push eax
push 0x211
jmp 0x4816e3
push 0x223
call fcn.0045b8f0
mov edx, 0x4f6ac8
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x481730
mov dword [0x4f677c], str.CMDWNDOTHER
jmp case.default.0x48161a
push 0x50b
call fcn.0045b8f0
mov edx, 0x4f6ac8
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x481758
mov dword [0x4f677c], str.CMDWNDCONVERT
jmp case.default.0x48161a
mov dword [0x4f677c], str.CMDWNDFIND
jmp case.default.0x48161a
push 0x543
call fcn.0045b8f0
mov edx, 0x4f6ac8
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x481790
mov dword [0x4f677c], str.CMDWNDOTHER
jmp case.default.0x48161a
push 0x556
call fcn.0045b8f0
mov edx, 0x4f6ac8
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x4817b5
mov dword [0x4f677c], str.CMDWNDOTHER
jmp case.default.0x48161a
mov dword [0x4f677c], str.CMDWNDBENCH
cmp dword [0x4db83c], ebx
je 0x4817e9
call fcn.0047fa50
xor al, al
jmp 0x481bd5
xor edx, edx
mov byte [0x4f7348], bl
mov word [0x4f6b48], dx
mov byte [0x4f6848], bl
mov byte [0x4f67e0], bl
mov dword [0x4f67d8], ebx
mov dword [0x4f67dc], ebx
mov dword [0x4f67b8], ebx
mov dword [0x4f67bc], ebx
mov dword [0x4f67c0], ebx
mov dword [0x4f67c4], ebx
mov dword [0x4f67c8], ebx
mov dword [0x4f67cc], ebx
mov dword [0x4f67d0], ebx
mov dword [0x4f67d4], ebx
mov byte [0x4f677a], bl
mov byte [0x4f6779], bl
mov dword [0x4f67b0], ebx
call fcn.0049ef7d
mov dword [0x4f6800], eax
mov dword [0x4f774c], ebx
mov dword [0x4f67ac], ebx
mov dword [0x4f6804], ebx
mov byte [0x4f6778], bl
call fcn.0047e670
movzx eax, al
push eax
push str.SystemProgressBar
push str.Interface
call fcn.00456400
test eax, eax
mov eax, dword [0x4f7748]
setne cl
mov byte [0x4f677b], cl
cmp eax, ebx
je 0x4818aa
cmp eax, 1
je 0x4818aa
cmp eax, 2
jne 0x4818ca
mov dword [0x4dc168], ebx
mov dword [0x4dc16c], ebx
cmp dword [0x4dbc60], ebx
jne 0x4818ca
mov dword [0x4dbcb0], ebx
mov dword [0x4dbcb4], ebx
mov edx, dword [0x4f677c]
mov eax, dword [0x4c9360]
push ebp
push edi
push 5
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [0x4c9360]
mov esi, eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, dword [0x4c9360]
push esi
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
mov ebp, eax
push edi
push ebp
call fcn.0049e700
add esp, 0xc
cmp dword [0x4dbc60], 1
je 0x481935
mov eax, dword [0x4dc1c8]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x481935
xor bl, bl
jmp 0x481949
mov ecx, dword [ebp]
and ecx, 0x3ff5f7ff
or ecx, 0x800a0800
mov bl, 1
mov dword [ebp], ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x481956
mov eax, fcn.00480a90
mov edx, dword [0x4dbc60]
dec edx
neg edx
push 0
push eax
mov eax, dword [0x4c9360]
sbb edx, edx
and edx, dword [0x4dc1c8]
push edx
push ebp
push eax
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x4db83c], eax
test bl, bl
je 0x4819c1
push 1
mov ecx, 0x4e2970
call fcn.00466640
mov ecx, dword [0x4db83c]
push eax
push 0
push 0x80
push ecx
call edi
push 0
mov ecx, 0x4e2970
call fcn.00466640
mov edx, dword [0x4db83c]
push eax
push 1
push 0x80
push edx
call edi
cmp dword [0x4f7748], 6
jne 0x481b25
cmp byte [0x4e32c0], 0
mov byte [esp + 0x518], 0
je 0x481a4d
push 0x4e32c0
mov esi, 0x4b1bb4
call fcn.0044d530
mov edi, edi
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x481a10
test cl, cl
je 0x481a0c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x481a10
add eax, 2
add esi, 2
test cl, cl
jne 0x4819f0
xor eax, eax
jmp 0x481a15
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x481a20
push 0x210
jmp 0x481a25
push 0x20f
call fcn.0045b8f0
push eax
lea eax, [esp + 0x51c]
push 0x4b4b88
push eax
call fcn.0049e0d5
add esp, 0xc
lea ecx, [esp + 0x518]
push ecx
call fcn.0047f3d0
cmp byte [0x4e42c0], 0
je 0x481a83
push 0x20e
call fcn.0045b8f0
push eax
lea edx, [esp + 0x51c]
push 0x4b4b88
push edx
call fcn.0049e0d5
add esp, 0xc
lea eax, [esp + 0x518]
push eax
call fcn.0047f3d0
cmp dword [0x4e575c], 0
je 0x481ab9
push 0x214
call fcn.0045b8f0
push eax
lea ecx, [esp + 0x51c]
push 0x4b4b88
push ecx
call fcn.0049e0d5
add esp, 0xc
lea edx, [esp + 0x518]
push edx
call fcn.0047f3d0
cmp byte [0x4e5869], 0
je 0x481aef
push 0x213
call fcn.0045b8f0
push eax
lea eax, [esp + 0x51c]
push 0x4b4b88
push eax
call fcn.0049e0d5
add esp, 0xc
lea ecx, [esp + 0x518]
push ecx
call fcn.0047f3d0
cmp byte [0x4e5772], 0
je 0x481b25
push 0x349
call fcn.0045b8f0
push eax
lea edx, [esp + 0x51c]
push 0x4b4b88
push edx
call fcn.0049e0d5
add esp, 0xc
lea eax, [esp + 0x518]
push eax
call fcn.0047f3d0
cmp byte [esp + 0x2528], 0
je 0x481b43
mov ecx, dword [0x4db83c]
push 0
push 0x6e
push 0x111
push ecx
call edi
jmp 0x481b52
mov edx, dword [0x4db83c]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x4f7748]
pop edi
pop ebp
test eax, eax
je 0x481b6e
cmp eax, 1
je 0x481b6e
cmp eax, 2
jne 0x481ba1
mov eax, dword [esp + 8]
push eax
push 0x28a
call fcn.0045b8f0
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0049e0d5
mov eax, dword [0x4db83c]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0xa5
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
cmp byte [0x4f6ac8], 0
jne 0x481bc1
mov ecx, dword [0x4db83c]
push 0x80
push 0x4f6ac8
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp dword [0x4db83c], 0
je 0x4817e2
call fcn.0047fa50
mov al, 1
mov ecx, dword [esp + 0x2510]
pop esi
pop ebx
xor ecx, esp
call fcn.0049e0c6
add esp, 0x250c
ret 0x10