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

Disassembly:
mov eax, 0x4a0c
call fcn.004a4490
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x4a08], eax
mov ecx, dword [esp + 0x4a14]
mov eax, dword [esp + 0x4a1c]
push ebx
push ebp
xor ebp, ebp
cmp dword [0x4e7b84], ebp
push esi
setne bl
xor edx, edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov word [0x50d370], dx
test bl, bl
jne 0x487b5a
mov eax, dword [esp + 0x4a1c]
mov byte [0x50ce26], dl
mov byte [0x50ce25], dl
mov dword [0x50e870], eax
mov word [0x50d270], dx
jmp 0x487b5f
mov eax, dword [0x50e870]
cmp eax, 0xb
ja case.default.0x487b68
jmp dword [eax*4 + 0x4881fc]
mov dword [0x50cb64], str.CMDWNDADD
test bl, bl
jne 0x487eef
mov byte [0x50ce26], 1
xor eax, eax
xor ecx, ecx
xor edx, edx
mov byte [0x50e470], 0
mov word [0x50dc70], cx
mov word [0x50ce70], dx
mov word [0x50cdc0], ax
mov dword [0x50cdb8], ebp
mov dword [0x50cdbc], ebp
mov dword [0x50cd98], ebp
mov dword [0x50cd9c], ebp
mov dword [0x50cda0], ebp
mov dword [0x50cda4], ebp
mov dword [0x50cda8], ebp
mov dword [0x50cdac], ebp
mov dword [0x50cdb0], ebp
mov dword [0x50cdb4], ebp
mov byte [0x50cb62], al
mov byte [0x50cb61], al
mov dword [0x50cb94], ebp
call fcn.004a4f95
xor ecx, ecx
mov dword [0x50ce28], eax
mov dword [0x50e874], ebp
mov word [0x50cb98], cx
mov dword [0x50ce2c], ebp
call fcn.0044ee50
mov byte [0x50cb60], 0
call fcn.004845b0
movzx edx, al
push edx
push str.SystemProgressBar
push str.Interface
call fcn.0045b230
test eax, eax
setne al
mov byte [0x50ce24], al
call fcn.0043e920
cmp eax, 0x601
sbb ecx, ecx
inc ecx
push ecx
push str.TaskbarProgressBar
push str.Interface
call fcn.0045b230
test eax, eax
mov eax, dword [0x50e870]
setne dl
mov byte [0x50cb63], dl
cmp eax, ebp
je 0x487c7d
cmp eax, 1
je 0x487c7d
cmp eax, 2
jne 0x487c9d
mov dword [0x4e8c40], ebp
mov dword [0x4e8c44], ebp
cmp dword [0x4e83a4], ebp
jne 0x487c9d
mov dword [0x4e8420], ebp
mov dword [0x4e8424], ebp
mov eax, dword [0x50cb64]
mov ecx, dword [0x4d56b0]
push edi
push 5
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edx, dword [0x4d56b0]
mov esi, eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov eax, dword [0x4d56b0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
mov ebp, eax
push edi
push ebp
call fcn.004a4540
add esp, 0xc
cmp dword [0x4e83a4], 1
je 0x487efb
mov ecx, dword [0x4e8cd4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x487efb
xor bl, bl
jmp 0x487f2f
push ecx
call fcn.004515b0
push eax
xor eax, eax
mov esi, 1
cmp dword [0x50e870], esi
setne al
add eax, 0x20a
push eax
call fcn.00460a30
push eax
push 0x50d370
mov edx, 0x480
call fcn.0046b810
add esp, 0xc
test bl, bl
jne 0x487dad
cmp dword [0x4e83a4], ebp
je 0x487d5b
cmp dword [0x4e842c], esi
ja 0x487d82
cmp dword [0x4eefac], ebp
je 0x487d82
mov ecx, 0x4eeda0
call fcn.00412fa0
test eax, eax
jne 0x487d79
cmp dword [0x4eefac], esi
je 0x487d82
mov byte [0x50ce26], 0
jmp 0x487d89
mov byte [0x50ce26], 1
mov ecx, 0x4eeda0
call fcn.00412fa0
test eax, eax
je 0x487da6
mov byte [0x50ce25], 1
cmp dword [0x4eefac], ebp
jne 0x487dad
mov byte [0x50ce25], 0
mov dword [0x50cb64], str.CMDWNDADD
jmp case.default.0x487b68
push ecx
call fcn.004515b0
push eax
push 0x20c
call fcn.00460a30
push eax
push 0x50d370
mov edx, 0x480
call fcn.0046b810
add esp, 0xc
mov dword [0x50cb64], 0x4bdf14
jmp case.default.0x487b68
push ecx
call fcn.004515b0
push eax
push 0x20d
jmp 0x487dc8
push ecx
call fcn.004515b0
push eax
push 0x211
jmp 0x487dc8
push 0x223
call fcn.00460a30
mov edx, 0x50d370
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, bp
jne 0x487e20
mov dword [0x50cb64], str.CMDWNDOTHER
jmp case.default.0x487b68
push 0x50b
call fcn.00460a30
mov edx, 0x50d370
nop
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, bp
jne 0x487e50
mov dword [0x50cb64], str.CMDWNDCONVERT
jmp case.default.0x487b68
mov dword [0x50cb64], str.CMDWNDFIND
jmp case.default.0x487b68
push 0x543
call fcn.00460a30
mov edx, 0x50d370
jmp 0x487e90
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, bp
jne 0x487e90
mov dword [0x50cb64], str.CMDWNDOTHER
jmp case.default.0x487b68
push 0x556
call fcn.00460a30
mov edx, 0x50d370
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, bp
jne 0x487ec0
mov dword [0x50cb64], str.CMDWNDOTHER
jmp case.default.0x487b68
mov dword [0x50cb64], str.CMDWNDBENCH
test bl, bl
je 0x487b88
call fcn.004859c0
xor al, al
jmp 0x4881e0
mov eax, dword [ebp]
mov edx, eax
and edx, 0xffff0000
mov bl, 1
cmp edx, 0xffff0000
jne 0x487f22
mov eax, dword [ebp + 0xc]
and eax, 0x3ff5f7ff
or eax, 0x800a0800
mov dword [ebp + 0xc], eax
jmp 0x487f2f
and eax, 0x3ff5f7ff
or eax, 0x800a0800
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x487f3c
mov eax, fcn.00486e60
mov ecx, dword [0x4e83a4]
mov edx, dword [0x4d56b0]
dec ecx
neg ecx
push 0
sbb ecx, ecx
and ecx, dword [0x4e8cd4]
push eax
push ecx
push ebp
push edx
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x4e7b84], eax
test bl, bl
je 0x487fa7
push 1
mov ecx, 0x4f03b0
call fcn.0046bbf0
push eax
mov eax, dword [0x4e7b84]
push 0
push 0x80
push eax
call edi
push 0
mov ecx, 0x4f03b0
call fcn.0046bbf0
mov ecx, dword [0x4e7b84]
push eax
push 1
push 0x80
push ecx
call edi
cmp dword [0x50e870], 6
jne 0x48812b
xor edx, edx
mov word [esp + 0xa18], dx
cmp word [0x4f14b0], dx
je 0x48803e
push 0x4f14b0
mov esi, 0x4b8e14
call fcn.004515b0
mov cx, word [eax]
cmp cx, word [esi]
jne 0x487ffc
test cx, cx
je 0x487ff8
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x487ffc
add eax, 4
add esi, 4
test cx, cx
jne 0x487fd6
xor eax, eax
jmp 0x488001
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x48800c
push 0x210
jmp 0x488011
push 0x20f
call fcn.00460a30
push eax
lea eax, [esp + 0xa1c]
push 0x4bdebc
push eax
mov edx, 0x2000
call fcn.0046b810
add esp, 0xc
lea ecx, [esp + 0xa18]
push ecx
call fcn.00485490
cmp word [0x4f2cb0], 0
je 0x48807a
push 0x20e
call fcn.00460a30
push eax
lea edx, [esp + 0xa1c]
push 0x4bdebc
push edx
mov edx, 0x2000
call fcn.0046b810
add esp, 0xc
lea eax, [esp + 0xa18]
push eax
call fcn.00485490
cmp dword [0x4f45cc], 0
je 0x4880b5
push 0x214
call fcn.00460a30
push eax
lea ecx, [esp + 0xa1c]
push 0x4bdebc
push ecx
mov edx, 0x2000
call fcn.0046b810
add esp, 0xc
lea edx, [esp + 0xa18]
push edx
call fcn.00485490
cmp byte [0x4f46d9], 0
je 0x4880f0
push 0x213
call fcn.00460a30
push eax
lea eax, [esp + 0xa1c]
push 0x4bdebc
push eax
mov edx, 0x2000
call fcn.0046b810
add esp, 0xc
lea ecx, [esp + 0xa18]
push ecx
call fcn.00485490
cmp byte [0x4f45e2], 0
je 0x48812b
push 0x349
call fcn.00460a30
push eax
lea edx, [esp + 0xa1c]
push 0x4bdebc
push edx
mov edx, 0x2000
call fcn.0046b810
add esp, 0xc
lea eax, [esp + 0xa18]
push eax
call fcn.00485490
cmp byte [esp + 0x4a28], 0
je 0x488149
mov ecx, dword [0x4e7b84]
push 0
push 0x6e
push 0x111
push ecx
call edi
jmp 0x488158
mov edx, dword [0x4e7b84]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x50e870]
pop edi
test eax, eax
je 0x488173
cmp eax, 1
je 0x488173
cmp eax, 2
jne 0x4881ab
mov eax, dword [esp + 0xc]
push eax
push 0x28a
call fcn.00460a30
push eax
lea ecx, [esp + 0x1c]
push ecx
mov edx, 0x500
call fcn.0046b810
mov eax, dword [0x4e7b84]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0xa5
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp word [0x50d370], 0
jne 0x4881cc
mov ecx, dword [0x4e7b84]
push 0x480
push 0x50d370
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [0x4e7b84], 0
je 0x487ef4
call fcn.004859c0
mov al, 1
mov ecx, dword [esp + 0x4a14]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a3c63
add esp, 0x4a0c
ret 0x10