Function at 0x476300
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 0x476309
mov eax, dword [ebp - 4]
add esp, 0xfffffaf0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
cmp dword [0x4cfe40], 0
je 0x47633b
xor eax, eax
jmp 0x47698d
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [0x4dcb84], edx
mov byte [0x4dd808], cl
mov byte [0x4dd788], cl
mov byte [0x4dcb88], 0
mov word [0x4dcf88], 0
mov byte [0x4dd888], 0
mov byte [0x4ddad3], 0
mov dword [0x4ddaf4], 0
xor eax, eax
mov dword [0x4ddaf8], 0
xor edx, edx
mov dword [0x4ddb14], eax
mov dword [0x4ddb18], edx
mov dword [0x4ddb0c], eax
mov dword [0x4ddb10], edx
mov dword [0x4ddb04], eax
mov dword [0x4ddb08], edx
mov dword [0x4ddafc], eax
mov dword [0x4ddb00], edx
mov byte [0x4ddb20], 0
xor eax, eax
mov byte [0x4ddb21], 0
mov dword [0x4ddb1c], eax
call fcn.004a82c8
mov dword [0x4ddacc], eax
xor edx, edx
mov dword [0x4dcb80], edx
xor ecx, ecx
mov dword [0x4ddb24], ecx
xor eax, eax
mov dword [0x4ddac8], eax
mov byte [0x4ddad0], 0
mov byte [0x4ddad1], 0
mov byte [0x4ddb58], 0
call fcn.00467448
xor ecx, ecx
mov cl, al
mov edx, str.SystemProgressBar
mov eax, 0x4b4c14
call fcn.00463dec
test eax, eax
setne dl
and edx, 1
mov byte [0x4ddad2], dl
cmp dword [0x4dcb84], 0
je 0x476444
cmp dword [0x4dcb84], 1
je 0x476444
cmp dword [0x4dcb84], 2
jne 0x476475
mov dword [0x4d3130], 0
mov dword [0x4d3134], 0
cmp dword [0x4d27d8], 0
jne 0x476475
mov dword [0x4d3138], 0
mov dword [0x4d313c], 0
mov ecx, dword [0x4dcb84]
cmp ecx, 0xb
ja case.default.0x476484
jmp dword [ecx*4 + 0x47648b]
mov dword [0x4ddb54], str.CMDWNDADD
mov byte [0x4ddad0], 1
jmp case.default.0x476484
mov eax, dword [ebp - 8]
call fcn.0040c4d0
push eax
mov eax, 0x20a
cmp dword [0x4dcb84], 1
je 0x4764e9
inc eax
call fcn.00413388
push eax
push 0x4dd788
call fcn.004a2e18
add esp, 0xc
cmp dword [0x4d27d8], 0
je 0x47650e
cmp dword [0x4d312c], 1
jg 0x476532
cmp dword [0x4d0d9c], 0
je 0x476532
mov eax, 0x4d0b94
call fcn.00458d90
test eax, eax
jne 0x47652e
cmp dword [0x4d0d9c], 1
je 0x476532
xor edx, edx
jmp 0x476537
mov edx, 1
mov byte [0x4ddad0], dl
mov eax, 0x4d0b94
call fcn.00458d90
test eax, eax
je 0x476554
cmp dword [0x4d0d9c], 0
jne 0x476558
xor edx, edx
jmp 0x47655d
mov edx, 1
mov byte [0x4ddad1], dl
mov dword [0x4ddb54], 0x4b4c30
jmp case.default.0x476484
mov eax, dword [ebp - 8]
call fcn.0040c4d0
push eax
mov eax, 0x20c
call fcn.00413388
push eax
push 0x4dd788
call fcn.004a2e18
add esp, 0xc
mov dword [0x4ddb54], 0x4b4c3a
jmp case.default.0x476484
mov eax, dword [ebp - 8]
call fcn.0040c4d0
push eax
mov eax, 0x20d
call fcn.00413388
push eax
push 0x4dd788
call fcn.004a2e18
add esp, 0xc
mov dword [0x4ddb54], 0x4b4c3a
jmp case.default.0x476484
mov eax, dword [ebp - 8]
call fcn.0040c4d0
push eax
mov eax, 0x211
call fcn.00413388
push eax
push 0x4dd788
call fcn.004a2e18
add esp, 0xc
mov dword [0x4ddb54], 0x4b4c3a
jmp case.default.0x476484
mov eax, 0x223
call fcn.00413388
push eax
push 0x4dd788
call fcn.0049fdd4
add esp, 8
mov dword [0x4ddb54], 0x4b4c3a
jmp case.default.0x476484
mov eax, 0x50b
call fcn.00413388
push eax
push 0x4dd788
call fcn.0049fdd4
add esp, 8
mov dword [0x4ddb54], 0x4b4c46
jmp case.default.0x476484
mov dword [0x4ddb54], str.CMDWNDFIND
jmp case.default.0x476484
mov eax, 0x543
call fcn.00413388
push eax
push 0x4dd788
call fcn.0049fdd4
add esp, 8
mov dword [0x4ddb54], 0x4b4c3a
jmp case.default.0x476484
mov eax, 0x556
call fcn.00413388
push eax
push 0x4dd788
call fcn.0049fdd4
add esp, 8
mov dword [0x4ddb54], 0x4b4c3a
jmp case.default.0x476484
mov dword [0x4ddb54], str.CMDWNDBENCH
push 5
push dword [0x4ddb54]
push dword [0x4bb918]
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
push ebx
push dword [0x4bb918]
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x10], eax
push ebx
push dword [0x4bb918]
call sub.KERNEL32.DLL_SizeofResource
mov esi, eax
push esi
push 0
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
push esi
push dword [ebp - 0x10]
push ebx
call fcn.0049fbe4
add esp, 0xc
cmp dword [0x4d27d8], 1
je 0x476710
push dword [0x4cfe34]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x476710
xor eax, eax
jmp 0x476715
mov eax, 1
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
je 0x47672e
mov edx, dword [ebx]
and edx, 0xbfffffff
or edx, 0x800a0800
mov dword [ebx], edx
push 0
test edi, edi
jne 0x476739
mov edi, fcn.00476998
push edi
cmp dword [0x4d27d8], 1
jne 0x476747
xor eax, eax
jmp 0x47674c
mov eax, dword [0x4cfe34]
push eax
push ebx
push dword [0x4bb918]
call sub.USER32.DLL_CreateDialogIndirectParamA
cmp byte [ebp - 0x11], 0
mov dword [0x4cfe40], eax
je 0x4767a2
mov eax, 0x4d0674
mov dl, 1
call fcn.0047e608
push eax
push 0
push 0x80
push dword [0x4cfe40]
call sub.USER32.DLL_SendMessageA
mov eax, 0x4d0674
xor edx, edx
call fcn.0047e608
push eax
push 1
push 0x80
push dword [0x4cfe40]
call sub.USER32.DLL_SendMessageA
cmp dword [0x4dcb84], 6
jne 0x4768dd
mov byte [ebp - 0x2014], 0
cmp byte [0x4c3598], 0
je 0x476811
push 0x4b4c71
mov eax, 0x4c3598
call fcn.0040c4d0
push eax
call fcn.0049fd88
add esp, 8
test eax, eax
jne 0x4767e7
mov eax, 0x210
call fcn.00413388
jmp 0x4767f1
mov eax, 0x20f
call fcn.00413388
push eax
push str.___s
lea edx, [ebp - 0x2014]
push edx
call fcn.004a2e18
add esp, 0xc
lea eax, [ebp - 0x2014]
call fcn.00478308
cmp byte [0x4c4598], 0
je 0x476844
mov eax, 0x20e
call fcn.00413388
push eax
push str.___s
lea edx, [ebp - 0x2014]
push edx
call fcn.004a2e18
add esp, 0xc
lea eax, [ebp - 0x2014]
call fcn.00478308
cmp dword [0x4c5a34], 0
je 0x476877
mov eax, 0x214
call fcn.00413388
push eax
push str.___s
lea edx, [ebp - 0x2014]
push edx
call fcn.004a2e18
add esp, 0xc
lea eax, [ebp - 0x2014]
call fcn.00478308
cmp byte [0x4c5b55], 0
je 0x4768aa
mov eax, 0x213
call fcn.00413388
push eax
push str.___s
lea edx, [ebp - 0x2014]
push edx
call fcn.004a2e18
add esp, 0xc
lea eax, [ebp - 0x2014]
call fcn.00478308
cmp byte [0x4c5a4a], 0
je 0x4768dd
mov eax, 0x349
call fcn.00413388
push eax
push str.___s
lea edx, [ebp - 0x2014]
push edx
call fcn.004a2e18
add esp, 0xc
lea eax, [ebp - 0x2014]
call fcn.00478308
cmp byte [ebp - 9], 0
je 0x4768f9
push 0
push 0x6e
push 0x111
push dword [0x4cfe40]
call sub.USER32.DLL_SendMessageA
jmp 0x476906
push 5
push dword [0x4cfe40]
call sub.USER32.DLL_ShowWindow
push ebx
call sub.KERNEL32.DLL_GlobalFree
cmp dword [0x4dcb84], 0
je 0x476927
cmp dword [0x4dcb84], 1
je 0x476927
cmp dword [0x4dcb84], 2
jne 0x47695b
push dword [ebp - 8]
mov eax, 0x28a
call fcn.00413388
push eax
lea edx, [ebp - 0x2514]
push edx
call fcn.004a2e18
add esp, 0xc
lea ecx, [ebp - 0x2514]
push ecx
push 0xa5
push dword [0x4cfe40]
call sub.USER32.DLL_SetDlgItemTextA
cmp byte [0x4dd788], 0
jne 0x476979
push 0x80
push 0x4dd788
push dword [0x4cfe40]
call sub.USER32.DLL_GetWindowTextA
cmp dword [0x4cfe40], 0
jne 0x476986
xor eax, eax
jmp 0x47698d
call fcn.004774b8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4