Function at 0x46aa14
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 0x46aa1d
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 [0x4ad5b4], 0
je 0x46aa48
xor eax, eax
jmp 0x46af40
mov dword [0x4bc1d4], eax
xor edx, edx
mov byte [0x4bc2d8], dl
mov byte [0x4bc258], dl
mov byte [0x4bc1d8], dl
mov byte [0x4bc6d8], 0
mov dword [0x4bc920], 0
mov dword [0x4bc924], 0
xor eax, eax
xor edx, edx
mov dword [0x4bc940], eax
mov dword [0x4bc944], edx
mov dword [0x4bc938], eax
mov dword [0x4bc93c], edx
mov dword [0x4bc930], eax
mov dword [0x4bc934], edx
mov dword [0x4bc928], eax
mov dword [0x4bc92c], edx
mov byte [0x4bc94c], 0
xor ecx, ecx
mov dword [0x4bc948], ecx
call fcn.0048e410
mov dword [0x4bc918], eax
xor eax, eax
mov dword [0x4bc1d0], eax
mov byte [0x4bc91c], 0
mov byte [0x4bc980], 0
mov eax, dword [0x4bc1d4]
test eax, eax
je 0x46aaf1
cmp eax, 1
je 0x46aaf1
cmp eax, 2
jne 0x46ab22
mov dword [0x4b055c], 0
mov dword [0x4b0560], 0
cmp dword [0x4afc10], 0
jne 0x46ab22
mov dword [0x4b0564], 0
mov dword [0x4b0568], 0
cmp eax, 8
ja case.default.0x46ab2b
jmp dword [eax*4 + 0x46ab32]
mov dword [0x4bc97c], str.CMDWNDADD
mov byte [0x4bc91c], 1
jmp case.default.0x46ab2b
mov eax, ebx
call fcn.0040a924
push eax
cmp dword [0x4bc1d4], 1
jne 0x46ab84
mov eax, 0x20a
jmp 0x46ab89
mov eax, 0x20b
call fcn.00410804
push eax
push 0x4bc1d8
call fcn.00486578
add esp, 0xc
cmp dword [0x4afc10], 0
je 0x46abae
cmp dword [0x4b0558], 1
jg 0x46abcd
mov eax, 0x4adfd0
call fcn.00459038
test eax, eax
jne 0x46abc9
mov edi, dword [0x4ae1d8]
test edi, edi
je 0x46abcd
dec edi
je 0x46abcd
xor ebx, ebx
jmp 0x46abd2
mov ebx, 1
mov byte [0x4bc91c], bl
test bl, bl
je 0x46abe3
mov eax, str.CMDWNDADD
jmp 0x46abe8
mov eax, str.CMDWNDEXTRACT
mov dword [0x4bc97c], eax
jmp case.default.0x46ab2b
mov eax, ebx
call fcn.0040a924
push eax
mov eax, 0x20c
call fcn.00410804
push eax
push 0x4bc1d8
call fcn.00486578
add esp, 0xc
mov dword [0x4bc97c], 0x4997e0
jmp case.default.0x46ab2b
mov eax, ebx
call fcn.0040a924
push eax
mov eax, 0x20d
call fcn.00410804
push eax
push 0x4bc1d8
call fcn.00486578
add esp, 0xc
mov dword [0x4bc97c], 0x4997e0
jmp case.default.0x46ab2b
mov eax, ebx
call fcn.0040a924
push eax
mov eax, 0x211
call fcn.00410804
push eax
push 0x4bc1d8
call fcn.00486578
add esp, 0xc
mov dword [0x4bc97c], 0x4997e0
jmp case.default.0x46ab2b
mov eax, 0x223
call fcn.00410804
push eax
push 0x4bc1d8
call fcn.00482a00
add esp, 8
mov dword [0x4bc97c], 0x4997e0
jmp case.default.0x46ab2b
mov eax, 0x50b
call fcn.00410804
push eax
push 0x4bc1d8
call fcn.00482a00
add esp, 8
mov dword [0x4bc97c], 0x4997ec
jmp case.default.0x46ab2b
mov dword [0x4bc97c], str.CMDWNDFIND
push 5
push dword [0x4bc97c]
push dword [0x49edec]
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
push ebx
push dword [0x49edec]
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 8], eax
push ebx
push dword [0x49edec]
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.00482810
add esp, 0xc
cmp dword [0x4afc10], 1
je 0x46ad30
push dword [0x4ad5a8]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x46ad30
xor eax, eax
jmp 0x46ad35
mov eax, 1
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x46ad4e
mov edx, dword [ebx]
and edx, 0xbfffffff
or edx, 0x800a0800
mov dword [ebx], edx
push 0
test esi, esi
jne 0x46ad59
mov esi, fcn.0046af4c
push esi
cmp dword [0x4afc10], 1
jne 0x46ad67
xor eax, eax
jmp 0x46ad6c
mov eax, dword [0x4ad5a8]
push eax
push ebx
push dword [0x49edec]
call sub.USER32.DLL_CreateDialogIndirectParamA
cmp byte [ebp - 9], 0
mov dword [0x4ad5b4], eax
je 0x46ada4
push 0x65
push dword [0x49edec]
call sub.USER32.DLL_LoadIconA
push eax
push 1
push 0x80
push dword [0x4ad5b4]
call sub.USER32.DLL_SendMessageA
cmp dword [0x4bc1d4], 6
jne 0x46aedf
mov byte [ebp - 0x200c], 0
cmp byte [0x4a623c], 0
je 0x46ae13
push 0x49980b
mov eax, 0x4a623c
call fcn.0040a924
push eax
call fcn.004829b4
add esp, 8
test eax, eax
jne 0x46ade9
mov eax, 0x210
call fcn.00410804
jmp 0x46adf3
mov eax, 0x20f
call fcn.00410804
push eax
push 0x499805
lea edx, [ebp - 0x200c]
push edx
call fcn.00486578
add esp, 0xc
lea eax, [ebp - 0x200c]
call fcn.0046c264
cmp byte [0x4a6a3c], 0
je 0x46ae46
mov eax, 0x20e
call fcn.00410804
push eax
push 0x499805
lea edx, [ebp - 0x200c]
push edx
call fcn.00486578
add esp, 0xc
lea eax, [ebp - 0x200c]
call fcn.0046c264
cmp dword [0x4a76d0], 0
je 0x46ae79
mov eax, 0x214
call fcn.00410804
push eax
push 0x499805
lea edx, [ebp - 0x200c]
push edx
call fcn.00486578
add esp, 0xc
lea eax, [ebp - 0x200c]
call fcn.0046c264
cmp byte [0x4a77c1], 0
je 0x46aeac
mov eax, 0x213
call fcn.00410804
push eax
push 0x499805
lea edx, [ebp - 0x200c]
push edx
call fcn.00486578
add esp, 0xc
lea eax, [ebp - 0x200c]
call fcn.0046c264
cmp byte [0x4a76e6], 0
je 0x46aedf
mov eax, 0x349
call fcn.00410804
push eax
push 0x499805
lea edx, [ebp - 0x200c]
push edx
call fcn.00486578
add esp, 0xc
lea eax, [ebp - 0x200c]
call fcn.0046c264
cmp byte [ebp - 1], 0
je 0x46aefb
push 0
push 0x6e
push 0x111
push dword [0x4ad5b4]
call sub.USER32.DLL_SendMessageA
jmp 0x46af08
push 5
push dword [0x4ad5b4]
call sub.USER32.DLL_ShowWindow
push ebx
call sub.KERNEL32.DLL_GlobalFree
cmp byte [0x4bc1d8], 0
jne 0x46af2c
push 0x80
push 0x4bc1d8
push dword [0x4ad5b4]
call sub.USER32.DLL_GetWindowTextA
cmp dword [0x4ad5b4], 0
jne 0x46af39
xor eax, eax
jmp 0x46af40
call fcn.0046b7e4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4